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-1.6.6
author
Junio C Hamano
<gitster@pobox.com>
Sun, 7 Mar 2010 22:53:53 +0000
(14:53 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 7 Mar 2010 22:53:53 +0000
(14:53 -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:
cb16bcc
)
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index dfcb8078f508d6cc26d312d61b64e0185e90b74b..dcf9d0a31030ce4b6a7e7f2268ed8d25fdb57322 100755
(executable)
--- a/
git-sh-setup.sh
+++ b/
git-sh-setup.sh
@@
-137,7
+137,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."
}