chiark / gitweb /
Tests: debpolicy-newreject: Explicitly check the state of the repo after each operation
[dgit.git] / dgit
diff --git a/dgit b/dgit
index c1615e8a44f6a2c7b91d3b5a945bddd0c573d900..8db03b3f5ee8737b55a50b1c8c585c66c0ea1ec0 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -531,8 +531,7 @@ sub cfg {
        my @cmd = (@git, qw(config --), $c);
        my $v;
        {
-           local ($Debian::Dgit::debuglevel) = $debuglevel-1;
-           *debug = *Debian::Dgit::debuglevel; # nnng
+           local ($debuglevel) = $debuglevel-2;
            $v = cmdoutput_errok @cmd;
        };
        if ($?==0) {
@@ -2698,6 +2697,7 @@ sub cmd_archive_api_query {
     badusage "need only 1 subpath argument" unless @ARGV==1;
     my ($subpath) = @ARGV;
     my @cmd = archive_api_query_cmd($subpath);
+    debugcmd ">",@cmd;
     exec @cmd or fail "exec curl: $!\n";
 }