Skip to content

Commit

Permalink
Merge branch 'nd/worktree' into HEAD
Browse files Browse the repository at this point in the history
* nd/worktree:
  git-sh-setup.sh: use "git rev-parse --show-cdup" to check for SUBDIRECTORY_OK
  • Loading branch information
Junio C Hamano committed Oct 31, 2007
2 parents 9725bb8 + 6b9ff1e commit 7eedc1c
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 @@ -110,7 +110,7 @@ esac
if [ -z "$SUBDIRECTORY_OK" ]
then
: ${GIT_DIR=.git}
GIT_DIR=$(GIT_DIR="$GIT_DIR" git rev-parse --git-dir) || {
test -z "$(git rev-parse --show-cdup)" || {
exit=$?
echo >&2 "You need to run this command from the toplevel of the working tree."
exit $exit
Expand Down

0 comments on commit 7eedc1c

Please sign in to comment.