lib/coveralls/configuration.rb in coveralls-0.7.9 vs lib/coveralls/configuration.rb in coveralls-0.7.10
- old
+ new
@@ -141,11 +141,10 @@
:committer_email => `git log -1 --pretty=format:'%ce'`,
:message => `git log -1 --pretty=format:'%s'`
}
# Branch
- branch = `git branch`.split("\n").delete_if { |i| i[0] != "*" }
- hash[:branch] = [branch].flatten.first.gsub("* ","")
+ hash[:branch] = `git rev-parse --abbrev-ref HEAD`
# Remotes
remotes = nil
begin
remotes = `git remote -v`.split(/\n/).map do |remote|