[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] scripts: Fix git-checkout.sh to work with non-master branches (take 2)
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Mon, 24 Feb 2025 08:27:42 -0500
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9+8L8GW9YuOtnJ4f/ZEsdvLJd/Y+CkVyoSzuBXlh+f0=; b=HuzteEE/TpEJjix9KoRv/VYn75qEtlxdBpwGNFdKjTT01K5VwBRpB5IvY0vbUyDMBU7wnUJ5wFcOo0Xn9g+0+sKg5j1SMk2dMmkqp1sMk117zu9ipgcvk/Nsr4WvN/AVTl4bzW0TY/Gj0k/yl8t5odu4eBjS4xqTT6LyCBbG2YkCWb7WWXKbc09uz+KE5NRKpxpw5B1ZLUTUhNOnWicc/soVSuSOoCnCR7HHuFQMRS+PaHSzk3jYj6ol2dJ/6JrJkA4mP85cdvosDhWz8aUre9hYlMLLKG+sC3EgPpTZlDFH/1mMiS4E+8NKWjXv22DbbCS0kPKS+MHtgDJyqkZusw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tdMe/xPA9xDArh45gx6yu/rmDWSB8RigKtWbUTe1hN+PBWzzbvpBV72yYnRZcmpg7i7F8GKiUH1HvY+V4Fig/BS50mkjL6keqKYOjdBLvNfQld4yeUkMbFCu0p0JpmaMerTYx9tzz3xPE0JaS2S2Z9P2OAxNBzTsZ9Zoj/huYGrOXgt6urMzjOa3WSzm6/VsFlwpKVW8Na3muByPnZ7v8mI9eDRBuiMnFsypHEvqMmqXu7vo66ZN0Qe1A8/tcavupNeNnaz3DmYpghlqpbyRvCjwaDNSG3ib+Yc1kNGFHf12EtS017n0d2R3saCN0KaNZZmCkI9Y3dh9LjU2pX3UIA==
- Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Mon, 24 Feb 2025 13:28:08 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2025-02-21 17:34, Andrew Cooper wrote:
First, rename $TAG to $COMMITTISH. We already pass tags, branches (well, only
master) and full SHAs into this script.
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 performing an explicit fetch of the $COMMITTISH, then checking out
the dummy branch from the FETCH_HEAD.
Suggested-by: Jason Andryuk <jason.andryuk@xxxxxxx>
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
|