Commit 7ad37bba authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: use depth 1 only for HEAD

parent 26082382
...@@ -296,7 +296,7 @@ HOSTVARS_PIC := $(HOSTTOOLS) \ ...@@ -296,7 +296,7 @@ HOSTVARS_PIC := $(HOSTTOOLS) \
download_git = \ download_git = \
rm -Rf $(@:.tar.xz=) && \ rm -Rf $(@:.tar.xz=) && \
$(GIT) clone --depth 1 $(2:%=--branch %) $(1) $(@:.tar.xz=) && \ $(GIT) clone $(subst HEAD, --depth 1,$(findstring HEAD, $3)) $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
(cd $(@:.tar.xz=) && $(GIT) checkout $(3:%= %)) && \ (cd $(@:.tar.xz=) && $(GIT) checkout $(3:%= %)) && \
rm -Rf $(@:%.tar.xz=%)/.git && \ rm -Rf $(@:%.tar.xz=%)/.git && \
(cd $(dir $@) && \ (cd $(dir $@) && \
......
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