]> git.ipfire.org Git - thirdparty/qemu.git/commit
ci: Fix again build-previous-qemu
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Feb 2024 15:48:39 +0000 (16:48 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Feb 2024 12:56:09 +0000 (13:56 +0100)
commit5f9beb5001738d9d32bb8a617ed0528d99d7f09a
tree388851c91a70085830acce5082c714cc1763b12f
parent726c60993689790b515b20603f3710b2b0418ee9
ci: Fix again build-previous-qemu

The build-previous-qemu job is now trying to fetch from the upstream
repository, but the tag is only fetched into FETCH_HEAD:

$ git remote add upstream https://gitlab.com/qemu-project/qemu 00:00
$ git fetch upstream $QEMU_PREV_VERSION 00:02
warning: redirecting to https://gitlab.com/qemu-project/qemu.git/
From https://gitlab.com/qemu-project/qemu
 * tag                     v8.2.0     -> FETCH_HEAD
$ git checkout $QEMU_PREV_VERSION 00:02
error: pathspec v8.2.0 did not match any file(s) known to git

Fix by fetching the tag into the checkout itself.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
.gitlab-ci.d/buildtest.yml