Read repo url and name from current git repo

This commit is contained in:
ismailgulek
2020-08-05 15:10:26 +03:00
parent f82751e337
commit bf14328746
2 changed files with 36 additions and 35 deletions

View File

@@ -37,9 +37,11 @@ bundle update
# Checkout the source to build
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git clone https://github.com/vector-im/riot-ios.git
cd riot-ios
git checkout -b $TAG $TAG
REPO_URL=$(git ls-remote --get-url origin)
git clone $REPO_URL
REPO_NAME=$(basename -s .git $REPO_URL)
cd $REPO_NAME
git checkout $TAG $TAG
# Develop branch special case