aboutsummaryrefslogtreecommitdiff
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
parentef0bfa25e99627b809c0902d21072821955db3fe (diff)
downloadgit-9661c256400d1a17a27e014592f887359f74707e.tar.gz
git-9661c256400d1a17a27e014592f887359f74707e.tar.xz
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 870b1a3ef..4b3ae4adc 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
;;