From 9661c256400d1a17a27e014592f887359f74707e Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 21 Jun 2005 17:12:38 -0700 Subject: [PATCH] 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. --- git-checkout-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-checkout-script b/git-checkout-script index 870b1a3e..4b3ae4ad 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 ;; -- 2.11.0