chiark / gitweb /
dgit: unpack_playtree_need_cd_work: Make idempotent
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 May 2019 11:31:11 +0000 (12:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 11:45:38 +0000 (12:45 +0100)
commite473bf523d358431f9eac1356b3807636a951f85
tree8cb0ae5b3253cb1ae5b3f867c58782fc6bcfbb11
parent5307140c7bb2a71334522ed0d88e78efcaa210be
dgit: unpack_playtree_need_cd_work: Make idempotent

This won't be able to recover from a truly-messed-up "work" but this
is good enough not to have to explicitly arrange for each place that
uses it to know whether it has been done already.

Checking in the filesystem is OK because mktree_in_ud_here calls
playtree_setup which expects the playground to have been set up
already - ie, all our callers have called prep_ud already.
Add a comment about this requirement.

No overall functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit