diff --git a/GNUmakefile b/GNUmakefile index c846b1cee5..2b1fe6bd74 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,6 +7,10 @@ PKG_ARCH ?= amd64 BASE_PATH ?= $(shell pwd) BUILD_PATH ?= $(BASE_PATH)/build PROVIDER := $(shell basename $(BASE_PATH)) +BRANCH := $(shell git rev-parse --abbrev-ref HEAD) +ifneq ($(origin TRAVIS_TAG), undefined) + BRANCH := $(TRAVIS_TAG) +endif default: build