From: Linus Torvalds Date: Wed, 22 Jun 2005 00:12:38 +0000 (-0700) Subject: Fix typo in git-checkout-script. X-Git-Tag: v0.99~215 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9661c256400d1a17a27e014592f887359f74707e;p=git.git 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. --- 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 ;;