瀏覽代碼

Merge pull request #2208 from dnephin/another_release_script_fix

Fix check for tags in release script `make-branch`
Daniel Nephin 10 年之前
父節點
當前提交
cd0b63879b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      script/release/make-branch

+ 1 - 1
script/release/make-branch

@@ -46,7 +46,7 @@ if [ -z "$REMOTE" ]; then
 fi
 fi
 
 
 # handle the difference between a branch and a tag
 # handle the difference between a branch and a tag
-if [ -z "$(git name-rev $BASE_VERSION | grep tags)" ]; then
+if [ -z "$(git name-rev --tags $BASE_VERSION | grep tags)" ]; then
     BASE_VERSION=$REMOTE/$BASE_VERSION
     BASE_VERSION=$REMOTE/$BASE_VERSION
 fi
 fi