From: Ian Jackson Date: Wed, 4 Jul 2018 00:16:19 +0000 (+0100) Subject: dgit: fetch: Slightly refactor pull() X-Git-Tag: archive/debian/5.7~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=d86eda75da28ce5765d16bdc47d2cc88bb82a9fe dgit: fetch: Slightly refactor pull() When for_for_multisuite returns '0', meaning we are a child and should do one suite, use finish 0 rather than returning, after doing the fetch. This has no functional change because the one call site is at the end of cmd_pull, after which we finish 0 anyway. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 5802a212..7242c782 100755 --- a/dgit +++ b/dgit @@ -3741,7 +3741,7 @@ END sub pull () { my $multi_fetched = fork_for_multisuite(sub { }); fetch_one() unless $multi_fetched; # parent - return if $multi_fetched eq '0'; # child + finish 0 if $multi_fetched eq '0'; # child runcmd_ordryrun_local @git, qw(merge -m),"Merge from $csuite [dgit]", lrref(); printdone "fetched to ".lrref()." and merged into HEAD";