Browse Source

Merge branch 'gf/maint-sh-setup-nongit-ok' into maint

* gf/maint-sh-setup-nongit-ok:
  require_work_tree broken with NONGIT_OK
maint
Junio C Hamano 15 years ago
parent
commit
801bad3ba4
  1. 2
      git-sh-setup.sh

2
git-sh-setup.sh

@ -128,7 +128,7 @@ cd_to_toplevel () { @@ -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."
}


Loading…
Cancel
Save