[vlc-commits] Contribs: Reduce git clone time by using --depth 1

Jérémy Carrier git at videolan.org
Thu Feb 19 19:03:52 CET 2015


vlc | branch: master | Jérémy Carrier <carrier.jerem at free.fr> | Thu Feb 19 17:03:28 2015 +0100| [1ae0d4773a3ad16f7e2d5d67ea37ab1a2a1c9141] | committer: Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ae0d4773a3ad16f7e2d5d67ea37ab1a2a1c9141
---

 contrib/src/main.mak |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index fdeeba9..a3b98c0 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -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 $@) && \



More information about the vlc-commits mailing list