From f3e6f8e5381c9f4a398f2bb74785fdc128b3aa0a Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Tue, 25 Feb 2020 17:33:24 +0100 Subject: [PATCH] tests/integration: fetch pull-request data Fetch pull-request data before resetting to a specified commit. This will allow us to run integration tests on pull-request using master repo, without cloning the original. Signed-off-by: Artem Savkov --- test/integration/vm-integration-run | 1 + 1 file changed, 1 insertion(+) diff --git a/test/integration/vm-integration-run b/test/integration/vm-integration-run index b1b0e04..2cdcb5b 100755 --- a/test/integration/vm-integration-run +++ b/test/integration/vm-integration-run @@ -47,6 +47,7 @@ git clone "${KPATCH_GIT}" || exit 1 cd kpatch || exit 1 +git fetch origin +refs/pull/*:refs/pull/* git reset --hard "${KPATCH_REV}" || exit 1 # shellcheck disable=SC1091