summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef0bfa2)
raw | patch | inline | side by side (parent: ef0bfa2)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 22 Jun 2005 00:12:38 +0000 (17:12 -0700) | ||
committer | Linus 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.
name, which in turn meant that we never switched the HEAD over to it.
git-checkout-script | patch | blob | history |
diff --git a/git-checkout-script b/git-checkout-script
index 870b1a3ef9ad71699ee0a6c967e91eaab0932573..4b3ae4adc262a7255882d4faff09c0e3a5f5afad 100755 (executable)
--- a/git-checkout-script
+++ b/git-checkout-script
exit 1
fi
new="$rev"
- if [ -f "$GIT_DIR/revs/heads/$arg" ]; then
+ if [ -f "$GIT_DIR/refs/heads/$arg" ]; then
branch="$arg"
fi
;;