Commit 1ae0d477 authored by Jérémy Carrier's avatar Jérémy Carrier Committed by Jean-Baptiste Kempf

Contribs: Reduce git clone time by using --depth 1

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e619f1ef
......@@ -296,7 +296,7 @@ HOSTVARS_PIC := $(HOSTTOOLS) \
download_git = \
rm -Rf $(@:.tar.xz=) && \
$(GIT) clone $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
$(GIT) clone --depth 1 $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
(cd $(@:.tar.xz=) && $(GIT) checkout $(3:%= %)) && \
rm -Rf $(@:%.tar.xz=%)/.git && \
(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