Browse Source

Merge pull request #3972 from shin-/fix-contributors-script

Fix the contributors script
Joffrey F 9 years ago
parent
commit
2d3c76950f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      script/release/contributors

+ 2 - 2
script/release/contributors

@@ -15,10 +15,10 @@ EOM
 
 [[ -n "$1" ]] || usage
 PREV_RELEASE=$1
-VERSION=HEAD
+BRANCH="$(git rev-parse --abbrev-ref HEAD)"
 URL="https://api.github.com/repos/docker/compose/compare"
 
-contribs=$(curl -sf "$URL/$PREV_RELEASE...$VERSION" | \
+contribs=$(curl -sf "$URL/$PREV_RELEASE...$BRANCH" | \
     jq -r '.commits[].author.login' | \
     sort | \
     uniq -c | \