aboutsummaryrefslogtreecommitdiffstats
path: root/git-checkout-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 17:12:38 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 17:12:38 -0700
commit9661c256400d1a17a27e014592f887359f74707e (patch)
tree6fcf02c9eb1e7d8fbdb073d214e1451675ed9b0e /git-checkout-script
parentRemove MERGE_HEAD in "git checkout/reset" (diff)
downloadgit-9661c256400d1a17a27e014592f887359f74707e.tar.gz
git-9661c256400d1a17a27e014592f887359f74707e.zip
Fix typo in git-checkout-script.
The confusion between "revs" vs "refs" caused us to not find the branch name, which in turn meant that we never switched the HEAD over to it.
Diffstat (limited to 'git-checkout-script')
-rwxr-xr-xgit-checkout-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-checkout-script b/git-checkout-script
index 870b1a3ef9..4b3ae4adc2 100755
--- a/git-checkout-script
+++ b/git-checkout-script
@@ -22,7 +22,7 @@ while [ "$#" != "0" ]; do
exit 1
fi
new="$rev"
- if [ -f "$GIT_DIR/revs/heads/$arg" ]; then
+ if [ -f "$GIT_DIR/refs/heads/$arg" ]; then
branch="$arg"
fi
;;