summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-07-04 01:18:25 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-07-04 01:28:05 +0100
commit8a52fe8f9f3fc66be492c54a19e2ba7890aa0557 (patch)
tree003072123eb89cfa5493c98bdd5816a7aaa69334 /dgit
parentd86eda75da28ce5765d16bdc47d2cc88bb82a9fe (diff)
dgit: fetch: Reorganise cmd_fetch
This slightly odd construction is actually how the return value from fork_for_multisuite should be handled. It now looks much more like the calling pattern in pull(). No functional change: if $multi_fetched is falseish, we call fetch_one, and then, no matter what, we finish 0. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgit b/dgit
index 7242c78..5efcc5b 100755
--- a/dgit
+++ b/dgit
@@ -4625,8 +4625,8 @@ sub cmd_fetch {
parseopts();
fetchpullargs();
my $multi_fetched = fork_for_multisuite(sub { });
- finish 0 if $multi_fetched;
- fetch_one();
+ fetch_one() unless $multi_fetched; # parent
+ finish 0 if $multi_fetched eq '0'; # child
}
sub cmd_pull {