Skip to content
Browse files

support branches with slashes in their name

References #117
  • Loading branch information...
1 parent cb03a5f commit 94a0bdc4b144e727795619c9367682a6da6eee8d @mislav mislav committed Dec 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hub/context.rb
View
2 lib/hub/context.rb
@@ -297,7 +297,7 @@ class Branch < Struct.new(:local_repo, :name)
alias to_s name
def short_name
- name.split('/').last
+ name.sub(%r{^refs/(remotes/)?.+?/}, '')
end
def master?

0 comments on commit 94a0bdc

Please sign in to comment.
Something went wrong with that request. Please try again.