<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t, branch v2.15.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.15.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.15.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-05-22T05:15:14Z</updated>
<entry>
<title>Sync with Git 2.14.4</title>
<updated>2018-05-22T05:15:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-05-22T05:15:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e0f06d55df5855178ff41342937943604f6e97c'/>
<id>urn:sha1:9e0f06d55df5855178ff41342937943604f6e97c</id>
<content type='text'>
* maint-2.14:
  Git 2.14.4
  Git 2.13.7
  verify_path: disallow symlinks in .gitmodules
  update-index: stat updated files earlier
  verify_dotfile: mention case-insensitivity in comment
  verify_path: drop clever fallthrough
  skip_prefix: add case-insensitive variant
  is_{hfs,ntfs}_dotgitmodules: add tests
  is_ntfs_dotgit: match other .git files
  is_hfs_dotgit: match other .git files
  is_ntfs_dotgit: use a size_t for traversing string
  submodule-config: verify submodule names as paths
</content>
</entry>
<entry>
<title>Sync with Git 2.13.7</title>
<updated>2018-05-22T05:10:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-05-22T05:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b01c71b64d25202d80b73cbd46104ebfddbdab3'/>
<id>urn:sha1:7b01c71b64d25202d80b73cbd46104ebfddbdab3</id>
<content type='text'>
* maint-2.13:
  Git 2.13.7
  verify_path: disallow symlinks in .gitmodules
  update-index: stat updated files earlier
  verify_dotfile: mention case-insensitivity in comment
  verify_path: drop clever fallthrough
  skip_prefix: add case-insensitive variant
  is_{hfs,ntfs}_dotgitmodules: add tests
  is_ntfs_dotgit: match other .git files
  is_hfs_dotgit: match other .git files
  is_ntfs_dotgit: use a size_t for traversing string
  submodule-config: verify submodule names as paths
</content>
</entry>
<entry>
<title>is_{hfs,ntfs}_dotgitmodules: add tests</title>
<updated>2018-05-22T03:50:11Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2018-05-12T20:16:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc2d9ba3187fcd0ca8eeab9aa9ddef70cf8627a6'/>
<id>urn:sha1:dc2d9ba3187fcd0ca8eeab9aa9ddef70cf8627a6</id>
<content type='text'>
This tests primarily for NTFS issues, but also adds one example of an
HFS+ issue.

Thanks go to Congyi Wu for coming up with the list of examples where
NTFS would possibly equate the filename with `.gitmodules`.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>submodule-config: verify submodule names as paths</title>
<updated>2018-05-22T03:50:11Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2018-04-30T07:25:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0383bbb9015898cbc79abd7b64316484d7713b44'/>
<id>urn:sha1:0383bbb9015898cbc79abd7b64316484d7713b44</id>
<content type='text'>
Submodule "names" come from the untrusted .gitmodules file,
but we blindly append them to $GIT_DIR/modules to create our
on-disk repo paths. This means you can do bad things by
putting "../" into the name (among other things).

Let's sanity-check these names to avoid building a path that
can be exploited. There are two main decisions:

  1. What should the allowed syntax be?

     It's tempting to reuse verify_path(), since submodule
     names typically come from in-repo paths. But there are
     two reasons not to:

       a. It's technically more strict than what we need, as
          we really care only about breaking out of the
          $GIT_DIR/modules/ hierarchy.  E.g., having a
          submodule named "foo/.git" isn't actually
          dangerous, and it's possible that somebody has
          manually given such a funny name.

       b. Since we'll eventually use this checking logic in
          fsck to prevent downstream repositories, it should
          be consistent across platforms. Because
          verify_path() relies on is_dir_sep(), it wouldn't
          block "foo\..\bar" on a non-Windows machine.

  2. Where should we enforce it? These days most of the
     .gitmodules reads go through submodule-config.c, so
     I've put it there in the reading step. That should
     cover all of the C code.

     We also construct the name for "git submodule add"
     inside the git-submodule.sh script. This is probably
     not a big deal for security since the name is coming
     from the user anyway, but it would be polite to remind
     them if the name they pick is invalid (and we need to
     expose the name-checker to the shell anyway for our
     test scripts).

     This patch issues a warning when reading .gitmodules
     and just ignores the related config entry completely.
     This will generally end up producing a sensible error,
     as it works the same as a .gitmodules file which is
     missing a submodule entry (so "submodule update" will
     barf, but "git clone --recurse-submodules" will print
     an error but not abort the clone.

     There is one minor oddity, which is that we print the
     warning once per malformed config key (since that's how
     the config subsystem gives us the entries). So in the
     new test, for example, the user would see three
     warnings. That's OK, since the intent is that this case
     should never come up outside of malicious repositories
     (and then it might even benefit the user to see the
     message multiple times).

Credit for finding this vulnerability and the proof of
concept from which the test script was adapted goes to
Etienne Stalmans.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tz/redirect-fix' into maint</title>
<updated>2017-12-06T17:09:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:09:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ce7320901f275caa1086df6fe0bfc74a7ec2fcd5'/>
<id>urn:sha1:ce7320901f275caa1086df6fe0bfc74a7ec2fcd5</id>
<content type='text'>
A few scripts (both in production and tests) incorrectly redirected
their error output.  These have been corrected.

* tz/redirect-fix:
  rebase: fix stderr redirect in apply_autostash()
  t/lib-gpg: fix gpgconf stderr redirect to /dev/null
</content>
</entry>
<entry>
<title>Merge branch 'tz/notes-error-to-stderr' into maint</title>
<updated>2017-12-06T17:09:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:09:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0cfcb1695f461db0330934f951160c9824d4de8f'/>
<id>urn:sha1:0cfcb1695f461db0330934f951160c9824d4de8f</id>
<content type='text'>
"git notes" sent its error message to its standard output stream,
which was corrected.

* tz/notes-error-to-stderr:
  notes: send "Automatic notes merge failed" messages to stderr
</content>
</entry>
<entry>
<title>Merge branch 'sb/test-cherry-pick-submodule-getting-in-a-way' into maint</title>
<updated>2017-12-06T17:09:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:09:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ace172f95f4afdc565bbcbc2373ebf33b8a9371'/>
<id>urn:sha1:2ace172f95f4afdc565bbcbc2373ebf33b8a9371</id>
<content type='text'>
The three-way merge performed by "git cherry-pick" was confused
when a new submodule was added in the meantime, which has been
fixed (or "papered over").

* sb/test-cherry-pick-submodule-getting-in-a-way:
  merge-recursive: handle addition of submodule on our side of history
  t/3512: demonstrate unrelated submodule/file conflict as cherry-pick failure
</content>
</entry>
<entry>
<title>Merge branch 'rs/apply-inaccurate-eof-with-incomplete-line' into maint</title>
<updated>2017-12-06T17:09:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:09:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=43240cb7316a7ea653ada00adfddd5ea80f90cf3'/>
<id>urn:sha1:43240cb7316a7ea653ada00adfddd5ea80f90cf3</id>
<content type='text'>
"git apply --inaccurate-eof" when used with "--ignore-space-change"
triggered an internal sanity check, which has been fixed.

* rs/apply-inaccurate-eof-with-incomplete-line:
  apply: update line lengths for --inaccurate-eof
</content>
</entry>
<entry>
<title>Merge branch 'ew/rebase-mboxrd' into maint</title>
<updated>2017-12-06T17:09:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:09:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3cc60ecdda7729496c3605449176000cc11412b6'/>
<id>urn:sha1:3cc60ecdda7729496c3605449176000cc11412b6</id>
<content type='text'>
When "git rebase" prepared an mailbox of changes and fed it to "git
am" to replay them, it was confused when a stray "From " happened
to be in the log message of one of the replayed changes.  This has
been corrected.

* ew/rebase-mboxrd:
  rebase: use mboxrd format to avoid split errors
</content>
</entry>
<entry>
<title>Merge branch 'mh/avoid-rewriting-packed-refs' into maint</title>
<updated>2017-12-06T17:08:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=02abc6be8eee1ccfcb5f4fb160f53a62c6528c04'/>
<id>urn:sha1:02abc6be8eee1ccfcb5f4fb160f53a62c6528c04</id>
<content type='text'>
Recent update to the refs infrastructure implementation started
rewriting packed-refs file more often than before; this has been
optimized again for most trivial cases.

* mh/avoid-rewriting-packed-refs:
  files-backend: don't rewrite the `packed-refs` file unnecessarily
  t1409: check that `packed-refs` is not rewritten unnecessarily
</content>
</entry>
</feed>
