Correctly build forks in Travis

The CI script goes looking for the branch to which a commit was pushed,
but was applying the branch name to moby/buildkit even if being built on
a different fork.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
v0.8
Paul "TBBle" Hampson 2020-03-01 21:24:45 +11:00
parent 94696710fa
commit bbd372d00e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
currentref="git://github.com/moby/buildkit#refs/pull/$TRAVIS_PULL_REQUEST/merge"
cacheref="cicache.buildk.it/moby/buildkit/pr$TRAVIS_BUILD_ID"
elif [ -n "$TRAVIS_BRANCH" ]; then
currentref="git://github.com/moby/buildkit#$TRAVIS_BRANCH"
currentref="git://github.com/$TRAVIS_REPO_SLUG#$TRAVIS_BRANCH"
fi