From: Ian Jackson Date: Sun, 30 Oct 2016 21:58:58 +0000 (+0000) Subject: git_fetch_us: More debugging (nfc) X-Git-Tag: archive/debian/2.9~21 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=8c8c2c4e6d9b28d056f27cbf65354f2f0be88aa3;hp=4723806663cc562af68cb68a9f0c18548942bad8 git_fetch_us: More debugging (nfc) Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 2a2eeddb..b17ed210 100755 --- a/dgit +++ b/dgit @@ -2292,6 +2292,8 @@ sub git_fetch_us () { # git fetch to try to generate it. If we don't manage to generate # the target state, we try again. + printdebug "git_fetch_us specs @specs\n"; + my $specre = join '|', map { my $x = $_; $x =~ s/\W/\\$&/g; @@ -2307,6 +2309,7 @@ sub git_fetch_us () { my $fetch_iteration = 0; FETCH_ITERATION: for (;;) { + printdebug "git_fetch_us iteration $fetch_iteration\n"; if (++$fetch_iteration > 10) { fail "too many iterations trying to get sane fetch!"; } @@ -2338,6 +2341,8 @@ END "+refs/$_:".lrfetchrefs."/$_"; } @specs; + printdebug "git_fetch_us fspecs @fspecs\n"; + my @fcmd = (@git, qw(fetch -p -n -q), access_giturl(), @fspecs); runcmd_ordryrun_local @git, qw(fetch -p -n -q), access_giturl(), @fspecs;