chiark / gitweb /
dgit: config debugging: do not print ARRAY(0x...)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 01:48:42 +0000 (01:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 22:14:48 +0000 (22:14 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index 562e4152dfe3d4aac7d0c28ad30edb9947c5dd58..1cff277b58b72261bcd35d86d540c5bbd6196b43 100644 (file)
@@ -12,6 +12,8 @@ dgit (3.0~) unstable; urgency=medium
   dgit-badcommit-fixup: 
   * Do not investigate symrefs.  Closes:#850547.
 
+  * Improve debugging output a bit.
+
   Test suite:
   * Internal improvements.
   * badcommit-rewrite: Fix operation using installed version of fixup.
diff --git a/dgit b/dgit
index 2427f72c06119acd0c3a01b939941f5d825cebcb..5f37c1143c7a91ac4866414b265aa5b3b4d5121e 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -659,7 +659,9 @@ sub git_get_config ($) {
     my ($c) = @_;
     foreach my $src (@gitcfgsources) {
        my $l = $gitcfgs{$src}{$c};
-       printdebug"C $c ".(defined $l ? messagequote "'$l'" : "undef")."\n"
+       printdebug"C $c ".(defined $l ?
+                          join " ", map { messagequote "'$_'" } @$l :
+                          "undef")."\n"
            if $debuglevel >= 4;
        $l or next;
        @$l==1 or badcfg "multiple values for $c".