git-sh-setup: die if outside git repository.
[git.git] / git-status.sh
index 837f334..b90ffc1 100755 (executable)
@@ -2,7 +2,7 @@
 #
 # Copyright (c) 2005 Linus Torvalds
 #
-. git-sh-setup || die "Not a git archive"
+GIT_DIR=$(git-rev-parse --git-dir) || exit
 
 report () {
   header="#