Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
[gitweb.git]
/
contrib
/
workdir
/
git-new-workdir
diff --git
a/contrib/workdir/git-new-workdir
b/contrib/workdir/git-new-workdir
index f2a3615bbc44ed4edbee4014683621a91c1a7ab9..3ff6bd166ab7db5612a419ffcdc93b9b3d7eb2f8 100755
(executable)
--- a/
contrib/workdir/git-new-workdir
+++ b/
contrib/workdir/git-new-workdir
@@
-24,6
+24,11
@@
git_dir=$(cd "$orig_git" 2>/dev/null &&
git rev-parse --git-dir 2>/dev/null) ||
die "\"$orig_git\" is not a git repository!"
+if test "$git_dir" = ".git"
+then
+ git_dir="$orig_git/.git"
+fi
+
# don't link to a workdir
if test -L "$git_dir/config"
then