Skip to content

Commit

Permalink
fix(rules): Only calculate PARENT once and don't die if it's the same…
Browse files Browse the repository at this point in the history
… as BRANCH
  • Loading branch information
alerque committed Mar 16, 2022
1 parent c1e507b commit fbd05f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ endif
BRANCH := $(subst refs/heads/,,$(or $(CI_COMMIT_REF_NAME),$(GITHUB_HEAD_REF),$(GITHUB_REF),$(shell $(_ENV) $(GIT) rev-parse --abbrev-ref HEAD)))
TAG := $(or $(CI_COMMIT_TAG),$(shell $(_ENV) $(GIT) describe --tags --exact-match 2>/dev/null))
ALLTAGS := $(strip $(CI_COMMIT_TAG) $(shell $(_ENV) $(GIT) tag --points-at HEAD | $(XARGS) echo))
PARENT ?= $(shell $(_ENV) $(GIT) merge-base $(or $(CI_MERGE_REQUEST_SOURCE_BRANCH_NAME),$(GITHUB_BASE_REF),master) $(BRANCH))
PARENT := $(shell $(_ENV) $(GIT) merge-base $(or $(CI_MERGE_REQUEST_SOURCE_BRANCH_NAME),$(GITHUB_BASE_REF),master) $(BRANCH) 2>/dev/null)

# Add mock-ups to sources
ifeq ($(strip $(MOCKUPS)),true)
Expand Down

0 comments on commit fbd05f8

Please sign in to comment.