BF: Build: Fix build based on git tag

It was not more possible to build using tags. The reason was the fastlane git_branch method returned nil.
Internally this method executes `git symbolic-ref HEAD --short` which returned `fatal: ref HEAD is not a symbolic ref` in our case.

We now checks out the tag as a local branch.
This commit is contained in:
manuroe
2019-08-08 17:25:23 +02:00
parent 8f9380b043
commit c7b1493284
2 changed files with 5 additions and 3 deletions

View File

@@ -37,8 +37,9 @@ bundle update
# Checkout the source to build
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git clone --single-branch --branch $TAG https://github.com/vector-im/riot-ios.git
git clone https://github.com/vector-im/riot-ios.git
cd riot-ios
git checkout -b $TAG $TAG
# Develop branch special case