<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/setup.c, branch v1.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.6.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-02-11T05:30:52Z</updated>
<entry>
<title>Merge branch 'js/maint-1.6.0-path-normalize'</title>
<updated>2009-02-11T05:30:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-11T05:30:52Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6e5d7ddc490fc7fdf46a5d0af35aa6fd64ae4a96'/>
<id>urn:sha1:6e5d7ddc490fc7fdf46a5d0af35aa6fd64ae4a96</id>
<content type='text'>
* js/maint-1.6.0-path-normalize:
  Remove unused normalize_absolute_path()
  Test and fix normalize_path_copy()
  Fix GIT_CEILING_DIRECTORIES on Windows
  Move sanitary_path_copy() to path.c and rename it to normalize_path_copy()
  Make test-path-utils more robust against incorrect use
</content>
</entry>
<entry>
<title>Move sanitary_path_copy() to path.c and rename it to normalize_path_copy()</title>
<updated>2009-02-07T20:23:29Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2009-02-07T15:08:28Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f3cad0ad82e24966bf7bcc8a47670c54c30e4b18'/>
<id>urn:sha1:f3cad0ad82e24966bf7bcc8a47670c54c30e4b18</id>
<content type='text'>
This function and normalize_absolute_path() do almost the same thing. The
former already works on Windows, but the latter crashes.

In subsequent changes we will remove normalize_absolute_path(). Here we
make the replacement function reusable. On the way we rename it to reflect
that it does some path normalization. Apart from that this is only moving
around code.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sg/maint-gitdir-in-subdir'</title>
<updated>2009-01-22T00:51:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-22T00:51:25Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0aac1614e976164259edf5f950da4cbebe069466'/>
<id>urn:sha1:0aac1614e976164259edf5f950da4cbebe069466</id>
<content type='text'>
* sg/maint-gitdir-in-subdir:
  Fix gitdir detection when in subdir of gitdir
</content>
</entry>
<entry>
<title>Fix gitdir detection when in subdir of gitdir</title>
<updated>2009-01-18T05:46:50Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder@ira.uka.de</email>
</author>
<published>2009-01-16T15:37:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=72183cb297f614dc2df1c0ed08afac1be27ec35a'/>
<id>urn:sha1:72183cb297f614dc2df1c0ed08afac1be27ec35a</id>
<content type='text'>
If the current working directory is a subdirectory of the gitdir (e.g.
&lt;repo&gt;/.git/refs/), then setup_git_directory_gently() will climb its
parent directories until it finds itself in a gitdir.  However, no
matter how many parent directories it climbs, it sets
'GIT_DIR_ENVIRONMENT' to ".", which is obviously wrong.

This behaviour affected at least 'git rev-parse --git-dir' and hence
caused some errors in bash completion (e.g. customized command prompt
when on a detached head and completion of refs).

To fix this, we set the absolute path of the found gitdir instead.

Signed-off-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Always show which directory is not a git repository</title>
<updated>2008-12-22T02:46:41Z</updated>
<author>
<name>Richard Hartmann</name>
<email>richih.mailinglist@gmail.com</email>
</author>
<published>2008-12-21T23:17:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f66bc5f928194366ee5eb78ef18a3562fb1bb7cf'/>
<id>urn:sha1:f66bc5f928194366ee5eb78ef18a3562fb1bb7cf</id>
<content type='text'>
Unify all

  fatal: Not a git repository

error messages so they include path information.

Signed-off-by: Richard Hartmann &lt;richih@net.in.tum.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make chdir failures visible</title>
<updated>2008-12-05T02:05:51Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-12-05T00:36:46Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7be77de266b5cbcbd28d69a04df6f0b167b87cf6'/>
<id>urn:sha1:7be77de266b5cbcbd28d69a04df6f0b167b87cf6</id>
<content type='text'>
Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>make prefix_path() never return NULL</title>
<updated>2008-10-06T07:37:30Z</updated>
<author>
<name>Dmitry Potapov</name>
<email>dpotapov@gmail.com</email>
</author>
<published>2008-10-05T00:40:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=62525ef78e8aec776f44da525030d76b52f14a57'/>
<id>urn:sha1:62525ef78e8aec776f44da525030d76b52f14a57</id>
<content type='text'>
There are 9 places where prefix_path is called, and only in one of
them the returned pointer was checked to be non-zero and only to
call exit(128) as it is usually done by die(). In other 8 places,
the returned value was not checked and it caused SIGSEGV when a
path outside of the working tree was used. For instance, running
  git update-index --add /some/path/outside
caused SIGSEGV.

This patch changes prefix_path() to die if the path is outside of
the repository, so it never returns NULL.

Signed-off-by: Dmitry Potapov &lt;dpotapov@gmail.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>setup_git_directory(): fix move to worktree toplevel directory</title>
<updated>2008-08-31T06:41:12Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2008-08-30T09:15:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=bb528633b34ac9c338a7761f3e1d251e0c560ed6'/>
<id>urn:sha1:bb528633b34ac9c338a7761f3e1d251e0c560ed6</id>
<content type='text'>
When setup_git_directory() returns successfully, it is supposed to move
current working directory to worktree toplevel directory.

However, the code recomputing prefix inside setup_git_directory() has
to move cwd back to original working directory, in order to get new
prefix.  After that, it should move cwd back to worktree toplevel
directory as expected.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dr/ceiling'</title>
<updated>2008-07-07T09:17:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-07-07T09:17:23Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=17d778e710f9dacc770b5790e792b85cdba75a9d'/>
<id>urn:sha1:17d778e710f9dacc770b5790e792b85cdba75a9d</id>
<content type='text'>
* dr/ceiling:
  Eliminate an unnecessary chdir("..")
  Add support for GIT_CEILING_DIRECTORIES
  Fold test-absolute-path into test-path-utils
  Implement normalize_absolute_path

Conflicts:

	cache.h
	setup.c
</content>
</entry>
<entry>
<title>Merge branch 'j6t/mingw'</title>
<updated>2008-07-03T04:57:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-07-03T04:57:52Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=bb1ab2db08f48add4236a5a9c08aa1a6aa4d5d48'/>
<id>urn:sha1:bb1ab2db08f48add4236a5a9c08aa1a6aa4d5d48</id>
<content type='text'>
* j6t/mingw: (38 commits)
  compat/pread.c: Add a forward declaration to fix a warning
  Windows: Fix ntohl() related warnings about printf formatting
  Windows: TMP and TEMP environment variables specify a temporary directory.
  Windows: Make 'git help -a' work.
  Windows: Work around an oddity when a pipe with no reader is written to.
  Windows: Make the pager work.
  When installing, be prepared that template_dir may be relative.
  Windows: Use a relative default template_dir and ETC_GITCONFIG
  Windows: Compute the fallback for exec_path from the program invocation.
  Turn builtin_exec_path into a function.
  Windows: Use a customized struct stat that also has the st_blocks member.
  Windows: Add a custom implementation for utime().
  Windows: Add a new lstat and fstat implementation based on Win32 API.
  Windows: Implement a custom spawnve().
  Windows: Implement wrappers for gethostbyname(), socket(), and connect().
  Windows: Work around incompatible sort and find.
  Windows: Implement asynchronous functions as threads.
  Windows: Disambiguate DOS style paths from SSH URLs.
  Windows: A rudimentary poll() emulation.
  Windows: Implement start_command().
  ...
</content>
</entry>
</feed>
