Fix typo in git-checkout-script.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 00:12:38 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 00:12:38 +0000 (17:12 -0700)
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.

git-checkout-script

index 870b1a3..4b3ae4a 100755 (executable)
@@ -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
                ;;