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>
This commit is contained in:
Richard Hartmann
2008-12-22 00:17:32 +01:00
committed by Junio C Hamano
parent 5fdb709835
commit f66bc5f928
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ branch=$3
# want to make sure that what is pointed to has a .git directory ...
git_dir=$(cd "$orig_git" 2>/dev/null &&
git rev-parse --git-dir 2>/dev/null) ||
die "\"$orig_git\" is not a git repository!"
die "Not a git repository: \"$orig_git\""
case "$git_dir" in
.git)