aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-07 14:53:53 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-07 14:53:53 -0800
commitb7380fa7a9adb52860eef7e8885fb8bc179beae1 (patch)
tree524e160bc3c08a540ee12b59e8057b2ba9b5413a
parentcb16bcc36965f28845e4fae15c36280a2506f1be (diff)
parentab62677b1424d4e53cf222c973b841d3dada4cf3 (diff)
downloadgit-b7380fa7a9adb52860eef7e8885fb8bc179beae1.tar.gz
git-b7380fa7a9adb52860eef7e8885fb8bc179beae1.tar.xz
Merge branch 'gf/maint-sh-setup-nongit-ok' into maint-1.6.6
* gf/maint-sh-setup-nongit-ok: require_work_tree broken with NONGIT_OK
-rwxr-xr-xgit-sh-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index dfcb8078f..dcf9d0a31 100755
--- 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."
}