[PATCH] buildman: Use git worktrees instead of git clones

Alper Nebi Yasak alpernebiyasak at gmail.com
Thu Sep 3 00:21:20 CEST 2020


On 02/09/2020 20:07, Simon Glass wrote:
> It looks like that version of git was not in Ubuntu 14.04 but appeared
> in 16.04. I've just done some patches to make patman work in 14.04, so
> I'd prefer to keep buildman working for that also.

I'll keep that in mind. Looks like Ubuntu 14.04 has python v3.4 and git
v1.9. I'm used to more recent versions so maybe I'll take the time to
set up a VM to test things in.

> So I think we should have an option to keep the old behaviour, or
> perhaps detect when 'git worktree' is not available and fall back.

I can check whether 'git worktree list' succeeds, it should have no
effect on the repo but would give a 'not a git command' error if things
wouldn't work; in which case buildman could fall back to cloning. I'll
implement and send a v2 with something like that.


More information about the U-Boot mailing list