Skip to content

Commit 295aaa6

Browse files
author
Yuvaraj Kakaraparthi
committed
make promote-images should also work if the user uses a SSH style URL
1 parent 4ee2872 commit 295aaa6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,10 @@ PREVIOUS_TAG ?= $(shell git tag -l | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$$" | sort
819819
RELEASE_ALIAS_TAG := $(PULL_BASE_REF)
820820
RELEASE_DIR := out
821821
RELEASE_NOTES_DIR := _releasenotes
822-
USER_FORK ?= $(shell git config --get remote.origin.url | cut -d/ -f4)
822+
USER_FORK ?= $(shell git config --get remote.origin.url | cut -d/ -f4) # only works on https://github.com/<username>/cluster-api.git style URLs
823+
ifeq ($(USER_FORK),)
824+
USER_FORK := $(shell git config --get remote.origin.url | cut -d: -f2 | cut -d/ -f1) # for [email protected]:<username>/cluster-api.git style URLs
825+
endif
823826
IMAGE_REVIEWERS ?= $(shell ./hack/get-project-maintainers.sh)
824827

825828
.PHONY: $(RELEASE_DIR)

0 commit comments

Comments
 (0)