<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/daemon.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-29T23:50:21Z</updated>
<entry>
<title>daemon.c: fix segfault on OS X</title>
<updated>2009-04-29T23:50:21Z</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2009-04-27T13:59:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e8a00ae1d529e61f38f36fdb504902064cf1f5d'/>
<id>urn:sha1:3e8a00ae1d529e61f38f36fdb504902064cf1f5d</id>
<content type='text'>
On OS X (and maybe other unices), getaddrinfo(3) returns NULL
in the ai_canonname field if it's called with an IP address for
the hostname. We'll now use the IP address for the hostname if
ai_canonname was NULL, this also matches the behaviour on Linux.

steps to reproduce:
$ git daemon --export-all
$ git clone git://127.0.0.1/frotz
=&gt; git daemon's fork (silently) segfaults.

Remove the pointless loop while at it. There is only one iteration
because of the break; on the last line and there are no continues.

Signed-off-by: Benjamin Kramer &lt;benny.kra@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>improve missing repository error message</title>
<updated>2009-03-05T04:37:21Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-03-04T08:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=05ac6b34e2c2adda5cb85dd0bdacb47fe5db953e'/>
<id>urn:sha1:05ac6b34e2c2adda5cb85dd0bdacb47fe5db953e</id>
<content type='text'>
Certain remote commands, when asked to do something in a
particular directory that was not actually a git repository,
would say "unable to chdir or not a git archive". The
"chdir" bit is an unnecessary detail, and the term "git
archive" is much less common these days than "git repository".

So let's switch them all to:

  fatal: '%s' does not appear to be a git repository

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Acked-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add calls to git_extract_argv0_path() in programs that call git_config_*</title>
<updated>2009-01-26T08:26:05Z</updated>
<author>
<name>Steffen Prohaska</name>
<email>prohaska@zib.de</email>
</author>
<published>2009-01-18T12:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2fb3f6db96492b680899f9e40f434eeb4c778a84'/>
<id>urn:sha1:2fb3f6db96492b680899f9e40f434eeb4c778a84</id>
<content type='text'>
Programs that use git_config need to find the global configuration.
When runtime prefix computation is enabled, this requires that
git_extract_argv0_path() is called early in the program's main().

This commit adds the necessary calls.

Signed-off-by: Steffen Prohaska &lt;prohaska@zib.de&gt;
Acked-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remove trailing LF in die() messages</title>
<updated>2009-01-05T21:01:01Z</updated>
<author>
<name>Alexander Potashev</name>
<email>aspotashev@gmail.com</email>
</author>
<published>2009-01-04T18:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d75307084da5f89329de190bb9b4a3196cec1d0e'/>
<id>urn:sha1:d75307084da5f89329de190bb9b4a3196cec1d0e</id>
<content type='text'>
LF at the end of format strings given to die() is redundant because
die already adds one on its own.

Signed-off-by: Alexander Potashev &lt;aspotashev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: cleanup: factor out xstrdup_tolower()</title>
<updated>2008-12-27T03:09:56Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-12-26T10:12:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6720e95b305737fddc776f2904c339a0701e6ae2'/>
<id>urn:sha1:6720e95b305737fddc776f2904c339a0701e6ae2</id>
<content type='text'>
Add xstrdup_tolower(), a helper to get a lower case copy of a
string, and use it in two cases.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: cleanup: replace loop with if</title>
<updated>2008-12-27T03:08:32Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-12-26T10:01:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a583971f15e520c8cb5f9967383903e13c353c86'/>
<id>urn:sha1:a583971f15e520c8cb5f9967383903e13c353c86</id>
<content type='text'>
Replace a loop around an enter_repo() call, which was used to retry
a single time with a different parameter in case the first call fails,
with two calls and an if.  This is shorter and cleaner.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: handle freopen() failure</title>
<updated>2008-12-27T03:07:56Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-12-26T09:46:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c569b1fee151e467854ca268997f4f3baaf73564'/>
<id>urn:sha1:c569b1fee151e467854ca268997f4f3baaf73564</id>
<content type='text'>
Die if stderr couldn't be sent to /dev/null when operating in inetd
mode and report the error message from the OS.

This fixes a compiler warning about the return value of freopen()
being ignored on Ubuntu 8.10.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: deglobalize variable 'directory'</title>
<updated>2008-11-24T03:56:36Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-11-22T23:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a47551c3828f81ec88d5b0b3d05887f1a7a4233a'/>
<id>urn:sha1:a47551c3828f81ec88d5b0b3d05887f1a7a4233a</id>
<content type='text'>
Remove the global variable 'directory' and pass it as a parameter of
the two functions that use it instead, (almost) restoring their
interface to how it was before 49ba83fb67d9e447b86953965ce5f949c6a93b81.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: inline fill_in_extra_table_entries()</title>
<updated>2008-11-24T03:56:26Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-11-22T23:19:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d433ed0bb49b947e3bb05d6474cf328c75ffa57d'/>
<id>urn:sha1:d433ed0bb49b947e3bb05d6474cf328c75ffa57d</id>
<content type='text'>
Having fill_in_extra_table_entries() as a separate function has no
advantage -- a function with no parameters and return values might as
well be an anonymous block of code.  Its name still refers to the table
of interpolate() which has been removed earlier, so it's better to
inline it at its only call site.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: use strbuf_expand() instead of interpolate()</title>
<updated>2008-11-24T03:56:06Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-11-22T23:15:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9d7ca667466b9e1a8160d20cce7c06d09213ab6b'/>
<id>urn:sha1:9d7ca667466b9e1a8160d20cce7c06d09213ab6b</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
