[vlc-commits] Contribs: use depth 1 only for HEAD
Jean-Baptiste Kempf
git at videolan.org
Tue Feb 24 12:09:47 CET 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Feb 24 12:09:30 2015 +0100| [7ad37bba0821350dc576c0c24f83d85235ec8fb3] | committer: Jean-Baptiste Kempf
Contribs: use depth 1 only for HEAD
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ad37bba0821350dc576c0c24f83d85235ec8fb3
---
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 b3a0ada..cf78d03 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 --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:%= %)) && \
rm -Rf $(@:%.tar.xz=%)/.git && \
(cd $(dir $@) && \
More information about the vlc-commits
mailing list