summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-11 21:08:39 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-12 01:40:29 +0100
commit070130ead75606bd7e58bec50a84830810a2c194 (patch)
treef5037ebd1ab75f5f84fc614178f66a9ce219f840
parent027613e7a281123f4512ca4c1b99552cc78ca72b (diff)
Dgit.pm: Move $maindir* up the file.
We're going to want these for the reflog cache functions. NFC. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--Debian/Dgit.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm
index 9d2e471..69db866 100644
--- a/Debian/Dgit.pm
+++ b/Debian/Dgit.pm
@@ -105,6 +105,11 @@ our $gdrlast_refprefix = 'debrebase-last';
our $printdebug_when_debuglevel = 1;
our $debugcmd_when_debuglevel = 1;
+# these three all go together, only valid after record_maindir
+our $maindir;
+our $maindir_gitdir;
+our $maindir_gitcommon;
+
# policy hook exit status bits
# see dgit-repos-server head comment for documentation
# 1 is reserved in case something fails with `exit 1' and to spot
@@ -758,11 +763,6 @@ sub make_commit_text ($) {
# ----- maindir -----
-# these three all go together
-our $maindir;
-our $maindir_gitdir;
-our $maindir_gitcommon;
-
our $local_git_cfg;
sub record_maindir () {