Skip to content

Commit 319de3c

Browse files
committed
git must in in the source tree instead of the build directory
1 parent 9ab1dfa commit 319de3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

defs/gmake.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ pull-github: fetch-github
276276
$(call pull-github,$(PR))
277277

278278
define pull-github
279-
$(eval GITHUB_MERGE_BASE := $(shell $(GIT) rev-parse HEAD)
279+
$(eval GITHUB_MERGE_BASE := $(shell $(GIT_IN_SRC) rev-parse HEAD)
280280
$(eval GITHUB_MERGE_BRANCH := $(shell $(GIT_IN_SRC) symbolic-ref --short HEAD))
281281
$(eval GITHUB_MERGE_WORKTREE := $(shell mktemp -d "$(srcdir)/gh-$(1)-XXXXXX"))
282282
$(GIT_IN_SRC) worktree prune
@@ -434,7 +434,7 @@ ifneq ($(DOT_WAIT),)
434434
endif
435435

436436
ifeq ($(HAVE_GIT),yes)
437-
REVISION_LATEST := $(shell $(GIT) rev-parse HEAD)
437+
REVISION_LATEST := $(shell $(GIT_IN_SRC) rev-parse HEAD)
438438
else
439439
REVISION_LATEST := update
440440
endif

0 commit comments

Comments
 (0)