Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'gf/maint-sh-setup-nongit-ok'
[gitweb.git]
/
git-sh-setup.sh
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index d56426dd396190a07de7d661cd22fb284b759ca8..5e22440aecc4aa57455ce836624f5fe17b6d1f73 100644
(file)
--- a/
git-sh-setup.sh
+++ b/
git-sh-setup.sh
@@
-128,7
+128,7
@@
cd_to_toplevel () {
}
require_work_tree () {
- test
$(git rev-parse --is-inside-work-tree)
= true ||
+ test
"$(git rev-parse --is-inside-work-tree 2>/dev/null)"
= true ||
die "fatal: $0 cannot be used without a working tree."
}