From bbd372d00ee775bc26430ccde62e29e8881ebbc8 Mon Sep 17 00:00:00 2001 From: "Paul \"TBBle\" Hampson" Date: Sun, 1 Mar 2020 21:24:45 +1100 Subject: [PATCH] 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 --- hack/util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/util b/hack/util index 778995850..7b68d75e4 100755 --- a/hack/util +++ b/hack/util @@ -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