summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-02 12:31:12 +0000
committerRémy Coutable <remy@rymai.me>2016-12-02 12:31:12 +0000
commit90c0f610e29976608dbfeeb63bc4763982c5dbc3 (patch)
tree1c7f676c84fc990b2a093572cb68f8524fd7ddac
parent141593fa719778426823173cd89aec2601c6f9fe (diff)
parent614fcfc4df6226f84c5b7e10864df45b24e72e46 (diff)
downloadgitlab-ce-90c0f610e29976608dbfeeb63bc4763982c5dbc3.tar.gz
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
-rwxr-xr-xbin/changelog2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/changelog b/bin/changelog
index b6586ebb6aa..e07b1ad237a 100755
--- a/bin/changelog
+++ b/bin/changelog
@@ -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