summaryrefslogtreecommitdiff
path: root/contrib/workdir
diff options
context:
space:
mode:
authorLibravatar Richard Hartmann <richih.mailinglist@gmail.com>2008-12-22 00:17:32 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-12-21 18:46:41 -0800
commitf66bc5f928194366ee5eb78ef18a3562fb1bb7cf (patch)
tree02bcca832db8ef7b86094b5cbb5fc11df9d02634 /contrib/workdir
parentMake help entries alphabetical (diff)
downloadtgif-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 'contrib/workdir')
-rwxr-xr-xcontrib/workdir/git-new-workdir2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir
index 7959eab902..993cacf324 100755
--- a/contrib/workdir/git-new-workdir
+++ b/contrib/workdir/git-new-workdir
@@ -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)