Skip to content
Snippets Groups Projects

Simplify `branch_name` in bin/changelog

Merged Robert Speicher requested to merge rs-simplify-changelog-branch_name into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -158,7 +158,7 @@ class ChangelogEntry
end
def branch_name
@branch_name ||= %x{git symbolic-ref HEAD}.strip.sub(%r{\Arefs/heads/}, '')
@branch_name ||= %x{git symbolic-ref --short HEAD}.strip
end
end
Loading