Revise handling of autospec repo

Always clone autospec from the upstream clearlinux/autospec github repo
regardless of whether a gitolite instance is configured.

Also, do not set the repo's pushurl, since the expectation is for
contributors to push changes to github forks of autospec, not directly
to the upstream repo.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2021-10-19 12:12:13 -07:00
parent 65c7cc8db6
commit fde02066ee
+6 -6
View File
@@ -31,11 +31,13 @@ $(proj_PKGS):
@proj=$(patsubst proj_%,%,$@); \
[ -d projects/$$proj ] || ( \
echo "Checking out: projects/$$proj"; \
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
cd projects/$$proj; \
if [ "$$proj" = "autospec" ] ; then \
git remote set-url --push origin git@github.com:clearlinux/autospec.git; \
git clone https://github.com/clearlinux/autospec.git projects/autospec; \
else \
git clone $(PRJ_BASE_URL)/$$proj projects/$$proj; \
fi; \
cd projects/$$proj; \
if [ "$$proj" != "autospec" ] ; then \
$(call gitoliteurl,projects/$$proj); \
fi; \
$(call subjectprefix,$$proj); \
@@ -76,9 +78,7 @@ ${PULL_PKGS}:
fi ; \
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit $$O..$$N; echo; \
fi ; \
if [ "$$p" = "projects/autospec" ] ; then \
git remote set-url --push origin git@github.com:clearlinux/autospec.git; \
else \
if [ "$$p" != "projects/autospec" ] ; then \
$(call gitoliteurl,$$p); \
fi ; \
else \