1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-02 05:33:17 +02:00

Rename 'master' branch into 'main' (#219)

This commit is contained in:
Guillaume Chatelet
2022-01-24 16:01:45 +01:00
committed by GitHub
parent 149916384b
commit 2f5a7bf80a
5 changed files with 17 additions and 17 deletions

View File

@ -19,16 +19,16 @@ declare -r VERSION=$1
declare -r GIT_TAG="v$1"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "${BRANCH}" != "master" ]]
if [[ "${BRANCH}" != "main" ]]
then
echo -e "${ERROR}Not on master. Aborting. ${NOCOLOR}"
echo -e "${ERROR}Not on main. Aborting. ${NOCOLOR}"
echo
exit 1
fi
git fetch
HEADHASH=$(git rev-parse HEAD)
UPSTREAMHASH=$(git rev-parse master@{upstream})
UPSTREAMHASH=$(git rev-parse main@{upstream})
if [[ "${HEADHASH}" != "${UPSTREAMHASH}" ]]
then