openwrt: Handle if ${remote} is a tag ref instead of a branch

E.g., for the makefile target output-source_v21.02.0-rc1 -- you cannot
check it out as source/v21.02.0-rc1, but you can check it out as just
v21.02.0-rc1.
This commit is contained in:
2021-05-09 19:08:20 +00:00
parent 352fd5d271
commit 2b765dc058

View File

@@ -11,7 +11,9 @@ RUN cd ${openwrt_dir} \
RUN cd ${openwrt_dir} \
&& git fetch --all \
&& git checkout ${remote}/${commit} \
&& git checkout ${remote}/${commit} || git checkout "${commit}"
RUN cd ${openwrt_dir} \
&& ./scripts/feeds update -a \
&& ./scripts/feeds install -a