]> git.sesse.net Git - vlc/blobdiff - contrib/src/main.mak
contrib: support using a specific commit tag in download_git
[vlc] / contrib / src / main.mak
index f4dbd5a5137da8e2b3cd6197de6b0b0c566b7e9c..47a55b2d721d2671c96768613373aa0384b658fa 100644 (file)
@@ -208,6 +208,7 @@ HOSTVARS_PIC := $(HOSTTOOLS) \
 download_git = \
        rm -Rf $(@:.tar.xz=) && \
        $(GIT) clone $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
+       (cd $(@:.tar.xz=) && $(GIT) checkout $(3:%= %)) && \
        rm -Rf $(@:%.tar.xz=%)/.git && \
        (cd $(dir $@) && \
         tar cvJ $(notdir $(@:.tar.xz=))) > $@ && \