[PATCH] Expose object ID computation functions.
[gitweb.git] / git-checkout-script
index ea7fef54ab6e1a6e04b87aa749c19ae916190d26..bf52e3bb24d3e679e396910c53924075e2f3a32b 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
-: ${GIT_DIR=.git}
+. git-sh-setup-script || die "Not a git archive"
+
 old=$(git-rev-parse HEAD)
 new=
 force=