chiark / gitweb /
Dgit.pm: Move $playground global to dgit.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 27dcf1c91e4a9288bb1693e5dc03488f08e5fcbc..9ce797200102205a4dc2f566cdd6faf281ab00ae 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -153,6 +153,7 @@ sub parseopts_late_defaults();
 sub setup_gitattrs(;$);
 sub check_gitattrs($$);
 
+our $playground;
 our $keyid;
 
 autoflush STDOUT 1;
@@ -1683,7 +1684,7 @@ our ($dsc_distro, $dsc_hint_tag, $dsc_hint_url);
 
 sub prep_ud () {
     dgit_privdir(); # ensures that $dgit_privdir_made is based on $maindir
-    fresh_playground 'dgit/unpack';
+    $playground = fresh_playground 'dgit/unpack';
 }
 
 sub mktree_in_ud_here () {