Commit 8a1e7b6c authored by Jan Kiszka's avatar Jan Kiszka

ci: Do not stumble over annotated ipipe tags

Currently not an issue for the kernels we pull here, but 4.14-ppc would
break e.g. because ls-remote --tags gives

... ipipe-core-4.14.36-ppc32-1.1
... ipipe-core-4.14.36-ppc32-1.1^{}

with the second one representing the dereferentiation of the annotated
tag. We only need the first one, though, while the second breaks git
clone. --refs filters this.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent edf3d57a
......@@ -18,7 +18,7 @@ env:
- CCACHE_MAXSIZE=400M
install:
- REV=$(git ls-remote --tags ${IPIPE_KERNEL} | sed "s|.*[[:space:]]refs/tags/||" | grep "${IPIPE_REV}" | sort -r -n -t - -k 5 -k 6 | head -1)
- REV=$(git ls-remote --tags --refs ${IPIPE_KERNEL} | sed "s|.*[[:space:]]refs/tags/||" | grep "${IPIPE_REV}" | sort -r -n -t - -k 5 -k 6 | head -1)
- test -n "${REV}" || REV="${IPIPE_REV}"
- echo "Cloning branch/tag ${REV}"
- git clone --depth 1 --branch ${REV} ${IPIPE_KERNEL} ${KDIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment