Skip to content

Commit

Permalink
Merge branch 'gf/maint-sh-setup-nongit-ok' into maint
Browse files Browse the repository at this point in the history
* gf/maint-sh-setup-nongit-ok:
  require_work_tree broken with NONGIT_OK
  • Loading branch information
Junio C Hamano committed Mar 5, 2010
2 parents ce5044d + ab62677 commit 801bad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-sh-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
Expand Down

0 comments on commit 801bad3

Please sign in to comment.