Comment 14 for bug 1713549

Revision history for this message
Robie Basak (racb) wrote : Re: [Bug 1713549] Re: 'build' should work (or support working) in a git worktree

On Wed, Sep 20, 2017 at 11:37:00PM -0000, Nish Aravamudan wrote:
> As mentioned a few times on IRC (and possibly in this bug) -- we don't
> support building from a dirty tree. We could, but it's not trivial to do
> (with LXD), as well, git can't archive what it doesn't know about!

I'd like to support this, even if we decide it needs to be explicit with
an option. We'll need to create a temporary different git index, ask
that to be brought up to the current state of the working tree, ask for
a tree object to be created from that temporary index, and then hand the
ref of that tree to the existing build code. That is probably a separate
bug though.