Skip to content

Commit dbca108

Browse files
committed
Updated common makefile
1 parent a095046 commit dbca108

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.make/Makefile.common

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ ifdef HAS_GIT
1818
ifdef HAS_REPO
1919
## Automatically detect the repo owner and repo name (for local use with Git)
2020
REPO_NAME=$(shell basename "$(shell git rev-parse --show-toplevel 2> /dev/null)")
21-
REPO_OWNER=$(shell git config --get remote.origin.url | sed 's/git@$(GIT_DOMAIN)://g' | sed 's/\/$(REPO_NAME).git//g')
21+
OWNER=$(shell git config --get remote.origin.url | sed 's/git@$(GIT_DOMAIN)://g' | sed 's/\/$(REPO_NAME).git//g')
22+
REPO_OWNER=$(shell echo $(OWNER) | tr A-Z a-z)
2223
VERSION_SHORT=$(shell git describe --tags --always --abbrev=0)
2324
export REPO_NAME, REPO_OWNER, VERSION_SHORT
2425
endif

0 commit comments

Comments
 (0)