Merge branch 'rs-simplify-changelog-branch_name' into 'master'
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 See merge request !7891
This commit is contained in:
commit
90c0f610e2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue