diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-08-02 12:17:32 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-08-03 09:56:52 +0100 |
commit | 3c79424dd5982b8bea141a14e1909a972de0f2cc (patch) | |
tree | 911f9d5da4bf068fca1c78f67a8832fe25bc0fda | |
parent | d088ef80cb2c01ba3a98179173f11d32706349a9 (diff) |
playground refactoring: dgit: Make prep_ud no longer take a directory
Nothing passes this argument, so no functional change.
This will make forthcoming changes more obviously correct.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1670,9 +1670,8 @@ our ($dsc_distro, $dsc_hint_tag, $dsc_hint_url); our $ud = '.git/dgit/unpack'; -sub prep_ud (;$) { - my ($d) = @_; - $d //= $ud; +sub prep_ud () { + my $d = $ud; rmtree($d); mkpath '.git/dgit'; mkdir $d or die $!; |