Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Expose object ID computation functions.
[gitweb.git]
/
git-checkout-script
diff --git
a/git-checkout-script
b/git-checkout-script
index ea7fef54ab6e1a6e04b87aa749c19ae916190d26..bf52e3bb24d3e679e396910c53924075e2f3a32b 100755
(executable)
--- a/
git-checkout-script
+++ b/
git-checkout-script
@@
-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=