From 2865b4c13b699e3fb46729b983f80da59eb8d178 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Oct 2017 14:04:49 -0400 Subject: override deploy url with PropellorRepo.hasOriginUrl info * Made the PropellorRepo.hasOriginUrl property override the repository url that --spin passes to a host. * PropellorRepo.hasOriginUrl type changed to include HasInfo. (API change) This commit was sponsored by Jake Vosloo on Patreon. --- ...ent_2_84b8e438ef86d2caf4046c6e7950698b._comment | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/forum/how_to_boostrap_the_initial_git_repo/comment_2_84b8e438ef86d2caf4046c6e7950698b._comment (limited to 'doc/forum/how_to_boostrap_the_initial_git_repo') diff --git a/doc/forum/how_to_boostrap_the_initial_git_repo/comment_2_84b8e438ef86d2caf4046c6e7950698b._comment b/doc/forum/how_to_boostrap_the_initial_git_repo/comment_2_84b8e438ef86d2caf4046c6e7950698b._comment new file mode 100644 index 00000000..91fdae32 --- /dev/null +++ b/doc/forum/how_to_boostrap_the_initial_git_repo/comment_2_84b8e438ef86d2caf4046c6e7950698b._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 2""" + date="2017-10-04T17:30:30Z" + content=""" +I don't know what deploy branch trick you're referring to using. + +There is the deploy remote, which I think should do what you want: + +> Additionally, the url of a remote named "deploy", if it exists +> in your ~/.propellor/ repository, is used as the origin url for +> the other repositories. + +When you have a deploy remote configured in your local repository, +the first time you spin a new host, it will clone its /usr/local/propellor +from the url of the deploy remote. On subsequent spins, it sends the +url over, and the host's repository's url is updated too. + +The PropellorRepo.hasOriginUrl property doesn't take effect until +propellor runs with that configuration, which could be a bit of a chicken and +egg situation. Except hmm, spin could look for that property and use +repo url instead of the deploy remote's url. Yeah, I've done that now! +"""]] -- cgit v1.2.3