From 8c8c2c4e6d9b28d056f27cbf65354f2f0be88aa3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 30 Oct 2016 21:58:58 +0000 Subject: git_fetch_us: More debugging (nfc) Signed-off-by: Ian Jackson --- dgit | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dgit') diff --git a/dgit b/dgit index 2a2eedd..b17ed21 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; -- cgit v1.2.3