spec/spec_helper.rb in git-topic-0.2.6.1 vs spec/spec_helper.rb in git-topic-0.2.7

- old
+ new

@@ -161,10 +161,12 @@ def git_head suffix=nil `git rev-parse HEAD#{suffix}`.chomp end def git_remote branch - `git rev-parse #{branch}`.chomp + ref = branch + ref = "origin/#{ref}" unless ref =~ %r{^origin} + `git rev-parse #{ref}`.chomp end def git_origin_master `git rev-parse origin/master`.chomp end