]> xenbits.xensource.com Git - xen.git/commit
scripts: Fix git-checkout.sh to work with branches other than master
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 30 Oct 2024 19:03:42 +0000 (19:03 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 31 Oct 2024 10:34:13 +0000 (10:34 +0000)
commitc554ec124b12f9c0d8bfb2b564ca239bd676037c
tree6a2d68037a6c23a7d5e7cc00b9fe91addf4b2556
parent9a2a50d5de7647bfb529867fdce47ec64b07f06a
scripts: Fix git-checkout.sh to work with branches other than master

Xen uses master for QEMU_UPSTREAM_REVISION, and has done for other trees too
in the path.  Apparently we've never specified a different branch, because the
git-clone rune only pulls in the master branch; it does not pull in diverging
branches.  Fix this by stating which branch/tag is wanted.

$TAG is really a committish, and git-clone's -b/--branch takes a committish
too.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
scripts/git-checkout.sh