File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -819,7 +819,10 @@ PREVIOUS_TAG ?= $(shell git tag -l | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$$" | sort
819
819
RELEASE_ALIAS_TAG := $(PULL_BASE_REF )
820
820
RELEASE_DIR := out
821
821
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
823
826
IMAGE_REVIEWERS ?= $(shell ./hack/get-project-maintainers.sh)
824
827
825
828
.PHONY : $(RELEASE_DIR )
You can’t perform that action at this time.
0 commit comments