Update rabbitmq-components.mk

This commit is contained in:
Jean-Sébastien Pédron 2015-11-26 08:54:11 +01:00
parent 7706655c13
commit 706b5d8778
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ RABBITMQ_UPSTREAM_REPO ?= https://github.com/rabbitmq/$(RABBITMQ_COMPONENT_REPO_
# Current URL for the current project. If this is not a Git clone,
# default to the upstream Git repository.
ifneq ($(wildcard .git),)
git_origin_repo_url := $(shell git config remote.origin.url | sed -E 's,/$(RABBITMQ_COMPONENT_REPO_NAME).*,,')
git_origin_repo_url := $(shell git config remote.origin.url)
RABBITMQ_CURRENT_REPO ?= $(git_origin_repo_url)
else
RABBITMQ_CURRENT_REPO ?= $(RABBITMQ_UPSTREAM_REPO)