Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-22 04:12:38 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-22 04:12:38 +0400
commit9661c256400d1a17a27e014592f887359f74707e (patch)
tree6fcf02c9eb1e7d8fbdb073d214e1451675ed9b0e /git-checkout-script
parentef0bfa25e99627b809c0902d21072821955db3fe (diff)
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-xgit-checkout-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-checkout-script b/git-checkout-script
index 870b1a3ef9..4b3ae4adc2 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
;;