Permalink
Browse files

Merge branch 'fix_branch_select_patterns' of https://github.com/hiros…

…hi/rvm into hiroshi-fix_branch_select_patterns
  • Loading branch information...
2 parents 2a7166b + 89b6561 commit fff4d5ddd0edd2f5bff17b6ad655068db02468b8 @wayneeseguin wayneeseguin 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 fff4d5d

Please sign in to comment.