lib/git/status_all.rb in git-status-all-1.1.2 vs lib/git/status_all.rb in git-status-all-1.1.3
- old
+ new
@@ -82,11 +82,11 @@
if g.remotes.select{|r| r.name.downcase == 'origin' }.empty?
return "no origin".black.on_yellow
end
- if !g.branches[:master].up_to_date?
- b = g.branches[:master]
+ if !g.branches.current.up_to_date?
+ b = g.branches.current
s = ''
s += "#{b.behind_count}\u2193" if b.behind_count > 0
s += "#{b.ahead_count}\u2191" if b.ahead_count > 0