]> git.sesse.net Git - vlc/commitdiff
Contribs: use depth 1 only for HEAD
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Feb 2015 11:09:30 +0000 (12:09 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Feb 2015 11:09:30 +0000 (12:09 +0100)
contrib/src/main.mak

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