Fix inifinite loop

In setup_git_directory_gently(), there is a hack to allow for stopping
the search at the drive letter.  Only that the patch was incomplete;
we really have to stop there, instead of looping infinitely.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2007-08-06 22:54:41 +01:00
parent 382210f715
commit 2d5d2c84f1

View File

@@ -260,7 +260,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
for (;;) {
if (is_git_directory(".git"))
break;
if (offset == 0) {
if (offset == minoffset) {
offset = -1;
break;
}