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:

committed by
Junio C Hamano

parent
5fdb709835
commit
f66bc5f928
@ -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)
|
||||
|
Reference in New Issue
Block a user