From 04e929175191c8086fd5cd7264a4bdd3e9a8badd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 24 Nov 2011 17:08:20 -0500 Subject: [PATCH] contrib: support using a specific commit tag in download_git --- contrib/src/main.mak | 1 + 1 file changed, 1 insertion(+) 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=))) > $@ && \ -- 2.39.2