]> git.sesse.net Git - vlc/commitdiff
Contribs: Reduce git clone time by using --depth 1
authorJérémy Carrier <carrier.jerem@free.fr>
Thu, 19 Feb 2015 16:03:28 +0000 (17:03 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 19 Feb 2015 18:03:07 +0000 (19:03 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
contrib/src/main.mak

index fdeeba9572f62f9689498c61edb5f5a18cdb7d9b..a3b98c0793f0132655639e413334d12258168beb 100644 (file)
@@ -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 $@) && \