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 <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2020-02-25 17:33:24 +01:00
parent 69acfe8a2f
commit f3e6f8e538

View File

@ -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