fetch current branch automatically (#3756)

This commit is contained in:
李铭昕 2021-06-28 09:36:00 +08:00 committed by GitHub
parent fe7356b9a9
commit 42366aa6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ then
fi
NOW=$(date +%s)
CURRENT_BRANCH="master"
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
VERSION=$1
BASEPATH=$(cd `dirname $0`; cd ../src/; pwd)

View File

@ -3,7 +3,7 @@
set -e
set -x
CURRENT_BRANCH="master"
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
BASEPATH=$(cd `dirname $0`; cd ../src/; pwd)
REPOS=$@