浏览代码

Fix the contributors script to show only contributors on the current branch

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 9 年之前
父节点
当前提交
5667de87e8
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 | \