From: Rafaël Carré Date: Thu, 24 Nov 2011 22:08:20 +0000 (-0500) Subject: contrib: support using a specific commit tag in download_git X-Git-Tag: 1.3.0-git~93 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=04e929175191c8086fd5cd7264a4bdd3e9a8badd;p=vlc contrib: support using a specific commit tag in download_git --- diff --git a/contrib/src/main.mak b/contrib/src/main.mak index f4dbd5a513..47a55b2d72 100644 --- a/contrib/src/main.mak +++ b/contrib/src/main.mak @@ -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=))) > $@ && \