aboutsummaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorRichard Hartmann <richih.mailinglist@gmail.com>2008-12-22 00:17:32 +0100
committerJunio C Hamano <gitster@pobox.com>2008-12-21 18:46:41 -0800
commitf66bc5f928194366ee5eb78ef18a3562fb1bb7cf (patch)
tree02bcca832db8ef7b86094b5cbb5fc11df9d02634 /setup.c
parent5fdb70983585ccde1540563a8c7458621f7a7407 (diff)
downloadgit-f66bc5f928194366ee5eb78ef18a3562fb1bb7cf.tar.gz
git-f66bc5f928194366ee5eb78ef18a3562fb1bb7cf.tar.xz
Always show which directory is not a git repository
Unify all fatal: Not a git repository error messages so they include path information. Signed-off-by: Richard Hartmann <richih@net.in.tum.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 833ced226..6b277b6a1 100644
--- a/setup.c
+++ b/setup.c
@@ -468,7 +468,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
*nongit_ok = 1;
return NULL;
}
- die("Not a git repository");
+ die("Not a git repository (or any of the parent directories): %s", DEFAULT_GIT_DIR_ENVIRONMENT);
}
if (chdir(".."))
die("Cannot change to %s/..: %s", cwd, strerror(errno));