aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.inc1
diff options
context:
space:
mode:
Diffstat (limited to 'release/Makefile.inc1')
-rw-r--r--release/Makefile.inc14
1 files changed, 2 insertions, 2 deletions
diff --git a/release/Makefile.inc1 b/release/Makefile.inc1
index 7d46f79adabd..3f650f863659 100644
--- a/release/Makefile.inc1
+++ b/release/Makefile.inc1
@@ -16,11 +16,11 @@ GIT_CMD= ${_P}/git
# Set the git branch and hash to export where needed.
.if !defined(GITBRANCH) || empty(GITBRANCH)
-GITBRANCH!= ${GIT_CMD} rev-parse --abbrev-ref HEAD 2>/dev/null | sed -e 's/\^\///'
+GITBRANCH!= cd ${.CURDIR} && ${GIT_CMD} rev-parse --abbrev-ref HEAD 2>/dev/null | sed -e 's/\^\///'
.export GITBRANCH
.endif
.if !defined(GITREV) || empty(GITREV)
-GITREV!= ${GIT_CMD} rev-parse --verify --short HEAD 2>/dev/null || true
+GITREV!= cd ${.CURDIR} && ${GIT_CMD} rev-parse --verify --short HEAD 2>/dev/null || true
.export GITREV
.endif