<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t, branch v2.3.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-02-25T06:10:41Z</updated>
<entry>
<title>Merge branch 'jc/apply-ws-fix-expands' into maint</title>
<updated>2015-02-25T06:10:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-25T06:10:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2764442ac9a66532789526a6e6aaf0f1254a3548'/>
<id>urn:sha1:2764442ac9a66532789526a6e6aaf0f1254a3548</id>
<content type='text'>
"git apply --whitespace=fix" used to under-allocate the memory
when the fix resulted in a longer text than the original patch.

* jc/apply-ws-fix-expands:
  apply: count the size of postimage correctly
  apply: make update_pre_post_images() sanity check the given postlen
  apply.c: typofix
</content>
</entry>
<entry>
<title>Merge branch 'jk/dumb-http-idx-fetch-fix' into maint</title>
<updated>2015-02-25T06:10:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-25T06:10:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=117c1b333da05e87a35ea73756518abe52407d84'/>
<id>urn:sha1:117c1b333da05e87a35ea73756518abe52407d84</id>
<content type='text'>
A broken pack .idx file in the receiving repository prevented the
dumb http transport from fetching a good copy of it from the other
side.

* jk/dumb-http-idx-fetch-fix:
  dumb-http: do not pass NULL path to parse_pack_index
</content>
</entry>
<entry>
<title>Merge branch 'dk/format-patch-ignore-diff-submodule' into maint</title>
<updated>2015-02-25T06:10:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-25T06:10:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66061294915065375c7eaa4e3a72e4834590f32b'/>
<id>urn:sha1:66061294915065375c7eaa4e3a72e4834590f32b</id>
<content type='text'>
Setting diff.submodule to 'log' made "git format-patch" produce
broken patches.

* dk/format-patch-ignore-diff-submodule:
  format-patch: ignore diff.submodule setting
  t4255: test am submodule with diff.submodule
</content>
</entry>
<entry>
<title>dumb-http: do not pass NULL path to parse_pack_index</title>
<updated>2015-01-27T20:41:45Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-01-27T20:02:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b9c2dd4dee01b5a0a9c5cfdd5a107f78edaceb7'/>
<id>urn:sha1:8b9c2dd4dee01b5a0a9c5cfdd5a107f78edaceb7</id>
<content type='text'>
Once upon a time, dumb http always fetched .idx files
directly into their final location, and then checked their
validity with parse_pack_index. This was refactored in
commit 750ef42 (http-fetch: Use temporary files for
pack-*.idx until verified, 2010-04-19), which uses the
following logic:

  1. If we have the idx already in place, see if it's
     valid (using parse_pack_index). If so, use it.

  2. Otherwise, fetch the .idx to a tempfile, check
     that, and if so move it into place.

  3. Either way, fetch the pack itself if necessary.

However, it got step 1 wrong. We pass a NULL path parameter
to parse_pack_index, so an existing .idx file always looks
broken. Worse, we do not treat this broken .idx as an
opportunity to re-fetch, but instead return an error,
ignoring the pack entirely. This can lead to a dumb-http
fetch failing to retrieve the necessary objects.

This doesn't come up much in practice, because it must be a
packfile that we found out about (and whose .idx we stored)
during an earlier dumb-http fetch, but whose packfile we
_didn't_ fetch. I.e., we did a partial clone of a
repository, didn't need some packfiles, and now a followup
fetch needs them.

Discovery and tests by Charles Bailey &lt;charles@hashpling.org&gt;.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/t1050'</title>
<updated>2015-01-22T21:46:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-22T21:46:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76afe74b10195c1e9f0c821c7f210da8de152006'/>
<id>urn:sha1:76afe74b10195c1e9f0c821c7f210da8de152006</id>
<content type='text'>
* js/t1050:
  t1050-large: generate large files without dd
</content>
</entry>
<entry>
<title>Merge branch 'jh/empty-notes'</title>
<updated>2015-01-22T21:42:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-22T21:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee443cf236ffa8f99857e9580df31a53f60d9045'/>
<id>urn:sha1:ee443cf236ffa8f99857e9580df31a53f60d9045</id>
<content type='text'>
* jh/empty-notes:
  Fix unclosed here document in t3301.sh
</content>
</entry>
<entry>
<title>apply: make update_pre_post_images() sanity check the given postlen</title>
<updated>2015-01-22T20:57:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-16T19:54:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2988289f2c5764605105037bfcb12f85b9971cf9'/>
<id>urn:sha1:2988289f2c5764605105037bfcb12f85b9971cf9</id>
<content type='text'>
"git apply --whitespace=fix" used to be able to assume that fixing
errors will always reduce the size by e.g. stripping whitespaces at
the end of lines or collapsing runs of spaces into tabs at the
beginning of lines.  An update to accomodate fixes that lengthens
the result by e.g. expanding leading tabs into spaces were made long
time ago but the logic miscounted the necessary space after such
whitespace fixes, leading to either under-allocation or over-usage
of already allocated space.

Illustrate this with a runtime sanity-check to protect us from
future breakage.  The test was stolen from Kyle McKay who helped
to identify the problem.

Helped-by: "Kyle J. McKay" &lt;mackyle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix unclosed here document in t3301.sh</title>
<updated>2015-01-22T20:23:42Z</updated>
<author>
<name>Kacper Kornet</name>
<email>draenog@pld-linux.org</email>
</author>
<published>2015-01-22T11:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=85cb1d0ba883627f38ad994aa489bf0b3dc40f7f'/>
<id>urn:sha1:85cb1d0ba883627f38ad994aa489bf0b3dc40f7f</id>
<content type='text'>
Commit 908a3203632a02568df230c0fccf9a2cd8da24e6 introduced  indentation
to here documents in t3301.sh. However in one place &lt;&lt;-EOF was missing
-, which broke this test when run with mksh-50d. This commit fixes it.

Signed-off-by: Kacper Kornet &lt;draenog@pld-linux.org&gt;
Acked-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/colors'</title>
<updated>2015-01-20T23:57:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-20T23:57:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d06ce4a508386230e9412e68264a744392795dcb'/>
<id>urn:sha1:d06ce4a508386230e9412e68264a744392795dcb</id>
<content type='text'>
* jk/colors:
  parse_color: fix return value for numeric color values 0-8
</content>
</entry>
<entry>
<title>parse_color: fix return value for numeric color values 0-8</title>
<updated>2015-01-20T23:56:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-01-20T22:14:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3759d27aca3ddd78b4b1169a767809748dc1fc3f'/>
<id>urn:sha1:3759d27aca3ddd78b4b1169a767809748dc1fc3f</id>
<content type='text'>
When commit 695d95d refactored the color parsing, it missed
a "return 0" when parsing literal numbers 0-8 (which
represent basic ANSI colors), leading us to report these
colors as an error.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
