From f0078ea2da06440e53f799ce49afcda686defa34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 26 Aug 2018 13:48:24 +0200 Subject: Move explicit fetch to correct autopkg variant --- autopkg-branch.mk | 3 +++ autopkg-tag.mk | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autopkg-branch.mk b/autopkg-branch.mk index 871cffb..25e25e9 100644 --- a/autopkg-branch.mk +++ b/autopkg-branch.mk @@ -6,6 +6,9 @@ ifndef PKG_SOURCE_BRANCH $(error You have to define PKG_SOURCE_BRANCH before pkgauto.mk include) endif +# Explicitly fetch branch +$(shell git $(GIT_ARGS) fetch --prune --prune-tags --force "$(PKG_SOURCE_URL)" "$(PKG_SOURCE_BRANCH):$(PKG_SOURCE_BRANCH)") + PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) rev-parse "$(PKG_SOURCE_BRANCH)") PKG_VERSION:=$(shell git $(GIT_ARGS) describe --abbrev=0 --tags "$(PKG_SOURCE_BRANCH)") diff --git a/autopkg-tag.mk b/autopkg-tag.mk index 9e97ed7..6fe08d4 100644 --- a/autopkg-tag.mk +++ b/autopkg-tag.mk @@ -2,9 +2,6 @@ AUTOPKG_VARIANT:=tag $(call include_mk, autopkg-common.mk) -# Explicitly fetch branch -$(shell git $(GIT_ARGS) fetch --prune --prune-tags --force "$(PKG_SOURCE_URL)" "$(PKG_SOURCE_BRANCH):$(PKG_SOURCE_BRANCH)") - PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) tag | grep '^v' | sort | tail -1) PKG_VERSION:=$(subst v%,%,$(PKG_SOURCE_VERSION)) -- cgit v1.2.3