chiark / gitweb /
tidier debug local
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Aug 2013 16:04:23 +0000 (17:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Aug 2013 16:04:23 +0000 (17:04 +0100)
dgit

diff --git a/dgit b/dgit
index b693d53..9b1a9c7 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -146,8 +146,7 @@ sub cfg {
     foreach my $c (@_) {
        my $v;
        {
-           my $d2 = $debug-1;
-           local ($debug) = $d2;
+           local ($debug) = $debug-1;
            $v = cmdoutput_errok(@git, qw(config --), $c);
        };
        if ($?==0) {