<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/http.c, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-04-02T20:04:07Z</updated>
<entry>
<title>Allow curl to rewind the read buffers</title>
<updated>2009-04-02T20:04:07Z</updated>
<author>
<name>Martin Storsjö</name>
<email>martin@martin.st</email>
</author>
<published>2009-04-01T16:48:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3944ba0cb0ef5119dc9d1708c572855fca88fc43'/>
<id>urn:sha1:3944ba0cb0ef5119dc9d1708c572855fca88fc43</id>
<content type='text'>
When using multi-pass authentication methods, the curl library may
need to rewind the read buffers (depending on how much already has
been fed to the server) used for providing data to HTTP PUT, POST or
PROPFIND, and in order to allow the library to do so, we need to tell
it how by providing either an ioctl callback or a seek callback.

This patch adds an ioctl callback, which should be usable on older
curl versions (since 7.12.3) than the seek callback (introduced in
curl 7.18.0).

Some HTTP servers (such as Apache) give an 401 error reply immediately
after receiving the headers (so no data has been read from the read
buffers, and thus no rewinding is needed), but other servers (such
as Lighttpd) only replies after the whole request has been sent and
all data has been read from the read buffers, making rewinding necessary.

Signed-off-by: Martin Storsjo &lt;martin@martin.st&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http.c: CURLOPT_NETRC_OPTIONAL is not available in ancient versions of cURL</title>
<updated>2009-03-13T05:42:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-13T05:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=750d9305009a0f3fd14c0b5c5e62ae1eb2b18fda'/>
<id>urn:sha1:750d9305009a0f3fd14c0b5c5e62ae1eb2b18fda</id>
<content type='text'>
Besides, we have already called easy_setopt with the option before coming
to this function if it was available, so there is no need to repeat it
here.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http authentication via prompts</title>
<updated>2009-03-11T05:35:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-10T06:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c33976cbc6d1895fca5c1683fba678e786ee3e58'/>
<id>urn:sha1:c33976cbc6d1895fca5c1683fba678e786ee3e58</id>
<content type='text'>
Curl is designed not to ask for password when only username is given in
the URL, but has a way for application to feed a (username, password) pair
to it.  With this patch, you do not have to keep your password in
plaintext in your $HOME/.netrc file when talking with a password protected
URL with http://&lt;username&gt;@&lt;host&gt;/path/to/repository.git/ syntax.

The code handles only the http-walker side, not the push side.  At least,
not yet.  But interested parties can add support for it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http_init(): Fix config file parsing</title>
<updated>2009-03-11T05:31:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-10T02:00:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7059cd99fc671f9594b61cee7d10d69704f3ebe2'/>
<id>urn:sha1:7059cd99fc671f9594b61cee7d10d69704f3ebe2</id>
<content type='text'>
We honor the command line options, environment variables, variables in
repository configuration file, variables in user's global configuration
file, variables in the system configuration file, and then finally use
built-in default.  To implement this semantics, the code should:

 - start from built-in default values;

 - call git_config() with the configuration parser callback, which
   implements "later definition overrides earlier ones" logic
   (git_config() reads the system's, user's and then repository's
   configuration file in this order);

 - override the result from the above with environment variables if set;

 - override the result from the above with command line options.

The initialization code http_init() for http transfer got this wrong, and
implemented a "first one wins, ignoring the later ones" in http_options(),
to compensate this mistake, read environment variables before calling
git_config().  This is all wrong.

As a second class citizen, the http codepath hasn't been audited as
closely as other parts of the system, but we should try to bring sanity to
it, before inviting contributors to improve on it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http.c: style cleanups</title>
<updated>2009-03-10T01:47:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-10T01:47:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4251ccbd80eff92270503a48d35385516c3d106d'/>
<id>urn:sha1:4251ccbd80eff92270503a48d35385516c3d106d</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http.c: use strbuf API in quote_ref_url</title>
<updated>2009-03-08T04:52:25Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2009-03-07T16:47:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=113106e06c48cc80432fd1be8af912898e8f240e'/>
<id>urn:sha1:113106e06c48cc80432fd1be8af912898e8f240e</id>
<content type='text'>
In addition, ''quote_ref_url'' inserts a slash between the base URL and
remote ref path only if needed. Previously, this insertion wasn't
contingent on the lack of a separating slash.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2008-12-07T23:13:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-12-07T23:13:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3a59bb22db24ff90c173ffb462fe67902a213d96'/>
<id>urn:sha1:3a59bb22db24ff90c173ffb462fe67902a213d96</id>
<content type='text'>
* maint:
  GIT 1.6.0.5
  "git diff &lt;tree&gt;{3,}": do not reverse order of arguments
  tag: delete TAG_EDITMSG only on successful tag
  gitweb: Make project specific override for 'grep' feature work
  http.c: use 'git_config_string' to get 'curl_http_proxy'
  fetch-pack: Avoid memcpy() with src==dst
</content>
</entry>
<entry>
<title>http.c: use 'git_config_string' to get 'curl_http_proxy'</title>
<updated>2008-12-07T10:41:55Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2008-12-07T00:45:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e4a80ecf40c9651741def7c4f0b2ca56b42af1a8'/>
<id>urn:sha1:e4a80ecf40c9651741def7c4f0b2ca56b42af1a8</id>
<content type='text'>
Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mh/maint-honor-no-ssl-verify'</title>
<updated>2008-09-16T07:46:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-16T07:46:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb0863a528c1503cba1a9b8bf8da11a8e0b271aa'/>
<id>urn:sha1:fb0863a528c1503cba1a9b8bf8da11a8e0b271aa</id>
<content type='text'>
* mh/maint-honor-no-ssl-verify:
  Don't verify host name in SSL certs when GIT_SSL_NO_VERIFY is set
</content>
</entry>
<entry>
<title>Use xmalloc() and friends to catch allocation failures</title>
<updated>2008-09-09T23:28:05Z</updated>
<author>
<name>Dotan Barak</name>
<email>dotanba@gmail.com</email>
</author>
<published>2008-09-09T18:57:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8eec71d6e79c176d34dc8fda8780ed4dee447a2'/>
<id>urn:sha1:e8eec71d6e79c176d34dc8fda8780ed4dee447a2</id>
<content type='text'>
Some places use the standard malloc/strdup without checking if the
allocation was successful; they should use xmalloc/xstrdup that
check the memory allocation result.

Signed-off-by: Dotan Barak &lt;dotanba@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
