BuildRelease.sh: Fix checkout of tag

and use git shallow clone to speed up the script a bit
This commit is contained in:
manuroe 2020-09-03 15:17:10 +02:00
parent 61c25c9a42
commit 363196bc51

View file

@ -38,10 +38,10 @@ bundle update
mkdir -p $BUILD_DIR
cd $BUILD_DIR
REPO_URL=$(git ls-remote --get-url origin)
git clone $REPO_URL
REPO_NAME=$(basename -s .git $REPO_URL)
git clone $REPO_URL --depth=1 --branch $TAG
cd $REPO_NAME
git checkout $TAG $TAG
# Use appropriated dependencies according to the current branch
bundle exec fastlane point_dependencies_to_same_feature