<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/http.c, branch v2.4.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-03-24T19:36:10Z</updated>
<entry>
<title>http: release the memory of a http pack request as well</title>
<updated>2015-03-24T19:36:10Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2015-03-21T00:28:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=826aed50cbb072d8f159e4c8ba0f9bd3df21a234'/>
<id>urn:sha1:826aed50cbb072d8f159e4c8ba0f9bd3df21a234</id>
<content type='text'>
The cleanup function is used in 4 places now and it's always safe to
free up the memory as well.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ye/http-accept-language'</title>
<updated>2015-03-06T23:02:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-06T23:02:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=74c91d1f7a1e7848a3614c1c5031755bfa5e80e1'/>
<id>urn:sha1:74c91d1f7a1e7848a3614c1c5031755bfa5e80e1</id>
<content type='text'>
Compilation fix for a recent topic in 'master'.

* ye/http-accept-language:
  gettext.c: move get_preferred_languages() from http.c
</content>
</entry>
<entry>
<title>gettext.c: move get_preferred_languages() from http.c</title>
<updated>2015-02-26T22:09:20Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-02-26T03:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93f7d9108a0edf808e1e3bbcdbe6078310c22f9e'/>
<id>urn:sha1:93f7d9108a0edf808e1e3bbcdbe6078310c22f9e</id>
<content type='text'>
Calling setlocale(LC_MESSAGES, ...) directly from http.c, without
including &lt;locale.h&gt;, was causing compilation warnings.  Move the
helper function to gettext.c that already includes the header and
where locale-related issues are handled.

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 'tc/missing-http-proxyauth'</title>
<updated>2015-02-25T23:40:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-25T23:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=90eea883fd86a272a32c7d5f363445776e0680e2'/>
<id>urn:sha1:90eea883fd86a272a32c7d5f363445776e0680e2</id>
<content type='text'>
We did not check the curl library version before using
CURLOPT_PROXYAUTH feature that may not exist.

* tc/missing-http-proxyauth:
  http: support curl &lt; 7.10.7
</content>
</entry>
<entry>
<title>Merge branch 'ye/http-accept-language'</title>
<updated>2015-02-18T19:44:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-18T19:44:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f18e3896f7e3fd8de060aa37d9e35387a3b9282b'/>
<id>urn:sha1:f18e3896f7e3fd8de060aa37d9e35387a3b9282b</id>
<content type='text'>
Using environment variable LANGUAGE and friends on the client side,
HTTP-based transports now send Accept-Language when making requests.

* ye/http-accept-language:
  http: add Accept-Language header if possible
</content>
</entry>
<entry>
<title>Merge branch 'jk/dumb-http-idx-fetch-fix'</title>
<updated>2015-02-17T18:15:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-17T18:15:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b93b5b21b5358c1e5afc7d7d6e8ebf0ba345d98b'/>
<id>urn:sha1:b93b5b21b5358c1e5afc7d7d6e8ebf0ba345d98b</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 'jc/unused-symbols'</title>
<updated>2015-02-11T21:44:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-11T21:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c985aaf87909ab7f8194b3cfed3a744cbff78fe9'/>
<id>urn:sha1:c985aaf87909ab7f8194b3cfed3a744cbff78fe9</id>
<content type='text'>
Mark file-local symbols as "static", and drop functions that nobody
uses.

* jc/unused-symbols:
  shallow.c: make check_shallow_file_for_update() static
  remote.c: make clear_cas_option() static
  urlmatch.c: make match_urls() static
  revision.c: make save_parents() and free_saved_parents() static
  line-log.c: make line_log_data_init() static
  pack-bitmap.c: make pack_bitmap_filename() static
  prompt.c: remove git_getpass() nobody uses
  http.c: make finish_active_slot() and handle_curl_result() static
</content>
</entry>
<entry>
<title>http: support curl &lt; 7.10.7</title>
<updated>2015-02-03T21:53:17Z</updated>
<author>
<name>Tom G. Christensen</name>
<email>tgc@statsbiblioteket.dk</email>
</author>
<published>2015-02-03T17:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c2dbf2095beb5227d963a1541e356bd2e834dff'/>
<id>urn:sha1:1c2dbf2095beb5227d963a1541e356bd2e834dff</id>
<content type='text'>
Commit dd61399 introduced support for http proxies that require
authentication but it relies on the CURL_PROXYAUTH option which was
added in curl 7.10.7.
This makes sure proxy authentication is only enabled if libcurl can
support it.

Signed-off-by: Tom G. Christensen &lt;tgc@statsbiblioteket.dk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http: add Accept-Language header if possible</title>
<updated>2015-01-28T19:17:08Z</updated>
<author>
<name>Yi EungJun</name>
<email>eungjun.yi@navercorp.com</email>
</author>
<published>2015-01-28T12:04:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f18604bbf2c391c689a41fca14cbaeff5e106255'/>
<id>urn:sha1:f18604bbf2c391c689a41fca14cbaeff5e106255</id>
<content type='text'>
Add an Accept-Language header which indicates the user's preferred
languages defined by $LANGUAGE, $LC_ALL, $LC_MESSAGES and $LANG.

Examples:
  LANGUAGE= -&gt; ""
  LANGUAGE=ko:en -&gt; "Accept-Language: ko, en;q=0.9, *;q=0.1"
  LANGUAGE=ko LANG=en_US.UTF-8 -&gt; "Accept-Language: ko, *;q=0.1"
  LANGUAGE= LANG=en_US.UTF-8 -&gt; "Accept-Language: en-US, *;q=0.1"

This gives git servers a chance to display remote error messages in
the user's preferred language.

Limit the number of languages to 1,000 because q-value must not be
smaller than 0.001, and limit the length of Accept-Language header to
4,000 bytes for some HTTP servers which cannot accept such long header.

Signed-off-by: Yi EungJun &lt;eungjun.yi@navercorp.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</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>
</feed>
