1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-02 17:36:09 +02:00

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.
This commit is contained in:
Linus Torvalds 2005-06-21 17:12:38 -07:00
parent ef0bfa25e9
commit 9661c25640

View File

@ -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
;;