Skip to content
Snippets Groups Projects
Commit 90c0f610 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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
parents 141593fa 614fcfc4
No related branches found
No related tags found
Loading
Pipeline #
Loading
@@ -158,7 +158,7 @@ class ChangelogEntry
Loading
@@ -158,7 +158,7 @@ class ChangelogEntry
end end
   
def branch_name 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
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment