<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/setup.c, branch v1.6.3.1</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.3.1</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.3.1'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-03-28T04:51:04Z</updated>
<entry>
<title>"core.sharedrepository = 0mode" should set, not loosen</title>
<updated>2009-03-28T04:51:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-25T23:19:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5a688fe4706462dfa0a7932ef0c82c335c47e9ab'/>
<id>urn:sha1:5a688fe4706462dfa0a7932ef0c82c335c47e9ab</id>
<content type='text'>
This fixes the behaviour of octal notation to how it is defined in the
documentation, while keeping the traditional "loosen only" semantics
intact for "group" and "everybody".

Three main points of this patch are:

 - For an explicit octal notation, the internal shared_repository variable
   is set to a negative value, so that we can tell "group" (which is to
   "OR" in 0660) and 0660 (which is to "SET" to 0660);

 - git-init did not set shared_repository variable early enough to affect
   the initial creation of many files, notably copied templates and the
   configuration.  We set it very early when a command-line option
   specifies a custom value.

 - Many codepaths create files inside $GIT_DIR by various ways that all
   involve mkstemp(), and then call move_temp_to_file() to rename it to
   its final destination.  We can add adjust_shared_perm() call here; for
   the traditional "loosen-only", this would be a no-op for many codepaths
   because the mode is already loose enough, but with the new behaviour it
   makes a difference.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
