Skip to content

Commit

Permalink
Updated common makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Oct 1, 2020
1 parent a095046 commit dbca108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .make/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ ifdef HAS_GIT
ifdef HAS_REPO
## Automatically detect the repo owner and repo name (for local use with Git)
REPO_NAME=$(shell basename "$(shell git rev-parse --show-toplevel 2> /dev/null)")
REPO_OWNER=$(shell git config --get remote.origin.url | sed 's/git@$(GIT_DOMAIN)://g' | sed 's/\/$(REPO_NAME).git//g')
OWNER=$(shell git config --get remote.origin.url | sed 's/git@$(GIT_DOMAIN)://g' | sed 's/\/$(REPO_NAME).git//g')
REPO_OWNER=$(shell echo $(OWNER) | tr A-Z a-z)
VERSION_SHORT=$(shell git describe --tags --always --abbrev=0)
export REPO_NAME, REPO_OWNER, VERSION_SHORT
endif
Expand Down

0 comments on commit dbca108

Please sign in to comment.