Skip to content
Snippets Groups Projects
Commit 614fcfc4 authored by Robert Speicher's avatar Robert Speicher
Browse files

Simplify `branch_name` in bin/changelog

The `--short` option has existed since at least 1.8.1:
https://git-scm.com/docs/git-symbolic-ref/1.8.1
parent 14046b9c
No related branches found
No related tags found
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment