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
}
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."
}