Skip to content

Commit

Permalink
[fix] Travis build failed to create proper build tags due to default …
Browse files Browse the repository at this point in the history
…shallow git clone

'git describe' won't work correctly if there is more than 50 (Travis default) commits from the last description (tag)
https://docs.travis-ci.com/user/customizing-the-build#git-clone-depth
  • Loading branch information
perk-sumo committed Jun 2, 2020
1 parent ae14057 commit 384fc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ -n "$GITHUB_TOKEN" ]; then
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
git remote add origin-repo https://${GITHUB_TOKEN}@github.com/SumoLogic/sumologic-kubernetes-collection.git > /dev/null 2>&1
git fetch origin-repo
git fetch --unshallow origin-repo
git checkout $TRAVIS_PULL_REQUEST_BRANCH
fi

Expand Down

0 comments on commit 384fc02

Please sign in to comment.