On 27/07/13 17:44, Paul Sherwood wrote:
I'm trying to build a system with several new repos, debugging
as I go.
I'd like to do 'morph build --no-git-update', since this makes my
but if the repo i'm trying to get to be built hasn't been cached yet,
the build fails
with "ERROR: Repository foo is not cached yet"
So have to leave git-update on, which means each loop takes me longer.
we make the no-git-update functionality smart enough to try to pull any
repo that's not
In the meantime, you can use the update-gits command to update all gits
for the thing you are trying to build, once:
morph update-gits <repo> <ref> <morph>
Or you can get it to fetch the specific repo it just complained about:
morph update-gits <missing-repo> nothing nothing
This second form is a nasty trick. It causes Morph to pull the repo you
gave it and then complain that ref 'nothing' doesn't exist. However, by
that point it already updated the repo, which is what you wanted.
(Maybe this command has improved or been removeed since I last worked on
Baserock, in which case, ignore me).