diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 17:12:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 17:12:38 -0700 |
commit | 9661c256400d1a17a27e014592f887359f74707e (patch) | |
tree | 6fcf02c9eb1e7d8fbdb073d214e1451675ed9b0e /git-checkout-script | |
parent | ef0bfa25e99627b809c0902d21072821955db3fe (diff) | |
download | git-9661c256400d1a17a27e014592f887359f74707e.tar.gz git-9661c256400d1a17a27e014592f887359f74707e.tar.xz |
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.
Diffstat (limited to 'git-checkout-script')
-rwxr-xr-x | git-checkout-script | 2 |
1 files changed, 1 insertions, 1 deletions
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 ;; |