From 6ffc8a0738676c5552ec1e8e0e1ad151ca9eb706 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 27 Aug 2024 18:18:35 +0200 Subject: [PATCH] Fix mistake in branch calculation. (#21129) --- Make.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Make.config b/Make.config index e0b852fec448..af3f313c2976 100644 --- a/Make.config +++ b/Make.config @@ -59,7 +59,7 @@ PACKAGE_HEAD_REV=$(shell git rev-parse HEAD) ifneq ($(BUILD_SOURCEBRANCH),) # BUILD_SOURCEBRANCH is set in Azure DevOps, so use that value if it exists # it seems to always start with refs/heads/, so strip off that first. -CURRENT_BRANCH:=$(subst refs/heads,,${BUILD_SOURCEBRANCH}) +CURRENT_BRANCH:=$(subst refs/heads/,,${BUILD_SOURCEBRANCH}) else ifeq ($(BRANCH_NAME),) # BRANCH_NAME is set in Jenkins, so this is for local builds. CURRENT_BRANCH:=$(shell git rev-parse --abbrev-ref HEAD)