Permalink
Browse files

Fix patterns for $(git branch)

  • Loading branch information...
1 parent 0bde515 commit 89b65614a953c55b83538f5637ef8662dba2420e @hiroshi hiroshi committed Apr 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/manage
View
@@ -1418,12 +1418,12 @@ __rvm_fetch_ruby()
branches="$(git branch)" # Grab a list of the local branches
case "$branches" in
- ([[=*=]][[:space:]]${rvm_ruby_repo_branch})
+ (*\*[[:space:]]${rvm_ruby_repo_branch}*)
# On desired branch, pull!
git pull "$remote" "${rvm_ruby_repo_branch}"
;;
- (*([[:space:]])${rvm_ruby_repo_branch})
+ (*[[:space:]]${rvm_ruby_repo_branch}*)
# Not already on the desired branch, but it does exist locally.
git checkout "${rvm_ruby_repo_branch}" # Branch is local, checkout
git pull "$remote" "${rvm_ruby_repo_branch}" # Bring local to latest

0 comments on commit 89b6561

Please sign in to comment.