mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 03:55:06 +00:00
Incorrect checkout of git submodules
When checking out git packages, buildroot doesn't seem to track the revisions correctly of any submodules referenced by that project. As a result, the submodule stays at whatever revision was referenced by the head of the master branch. Running a 'git submodule update' after the checkout fixes this problem. Signed-off-by: Owen Kirby <osk@exegin.com> SVN-Revision: 38359
This commit is contained in:
parent
5380fa27e9
commit
97fc11af79
@ -88,7 +88,7 @@ define DownloadMethod/git
|
|||||||
rm -rf $(SUBDIR) && \
|
rm -rf $(SUBDIR) && \
|
||||||
[ \! -d $(SUBDIR) ] && \
|
[ \! -d $(SUBDIR) ] && \
|
||||||
git clone $(URL) $(SUBDIR) --recursive && \
|
git clone $(URL) $(SUBDIR) --recursive && \
|
||||||
(cd $(SUBDIR) && git checkout $(VERSION)) && \
|
(cd $(SUBDIR) && git checkout $(VERSION) && git submodule update) && \
|
||||||
echo "Packing checkout..." && \
|
echo "Packing checkout..." && \
|
||||||
rm -rf $(SUBDIR)/.git && \
|
rm -rf $(SUBDIR)/.git && \
|
||||||
$(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
|
$(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
|
||||||
|
Loading…
Reference in New Issue
Block a user