Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'gf/maint-sh-setup-nongit-ok' into maint
author
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Mar 2010 06:25:37 +0000
(22:25 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Mar 2010 06:25:37 +0000
(22:25 -0800)
* gf/maint-sh-setup-nongit-ok:
require_work_tree broken with NONGIT_OK
git-sh-setup.sh
patch
|
blob
|
history
raw
(from parent 1:
ce5044d
)
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index d56426dd396190a07de7d661cd22fb284b759ca8..5e22440aecc4aa57455ce836624f5fe17b6d1f73 100755
(executable)
--- 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."
}