chiark / gitweb /
playground refactoring: dgit: Use playground facilities
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Aug 2017 11:28:09 +0000 (12:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 08:56:59 +0000 (09:56 +0100)
commit7ec5b74cc4587f7473a1e787d591c07eb1f48046
tree9b4ed4d11b8ccc891098d7028353b0617a2d3578
parentd69f00cafcb1a8ab3ec1c75a4a35b0db496a60ad
playground refactoring: dgit: Use playground facilities

* Replace implementation of prep_ud with a call to fresh_playground
* Replace references to $ud with $playground
* Replace hardcoded changedir ../../.. etc. with $maindir

The overall functional change is fairly minimal.  We now call getcwd
more often, and when we want to return to the maindir we changedir to
an absolute path instead of a relative one.

Later, we may rename prep_ud, mktree_in_ud_here, etc.

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