From d06a47310e69de30a4af78027953222fb507698e Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Feb 28 2017 00:11:00 +0000 Subject: Make 'make archive' default to cloning 'origin' Make 'make archive' default to cloning from the remote repo named 'origin', instead of hard-coding the main repository. Signed-off-by: Nalin Dahyabhai --- diff --git a/Makefile.am b/Makefile.am index 2a7c0f3..16d103e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,8 @@ tag: all-gmo force-tag: all-gmo git tag -f $(GITTAG) -ORIGIN=ssh://git@pagure.io/certmonger.git +GITREMOTE=origin +ORIGIN=$(shell git config remote.$(GITREMOTE).url 2> /dev/null || /bin/pwd) ARCHIVEOUTDIR=$(shell cd $(top_srcdir) && pwd) local-archive: