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

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


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

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 1ae0d4773a3ad16f7e2d5d67ea37ab1a2a1c9141)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=6c5b0e04b4427f38e5a454989fe2d88073022398
---

 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 6ef8c3a..9a0aed8 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