Commit add6d3f5 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 <>
parent 0cc363fc
......@@ -25,7 +25,7 @@ install:
- sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-8 800
- sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-8 800
- sudo update-alternatives --install /usr/bin/powerpc-linux-gnu-gcc powerpc-linux-gnu-gcc /usr/bin/powerpc-linux-gnu-gcc-8 800
- 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