]> Sergey Matveev's repositories - public-inbox.git/commitdiff
clone: --dry-run unconditionally runs show-ref
authorEric Wong <e@80x24.org>
Fri, 30 Dec 2022 10:59:38 +0000 (10:59 +0000)
committerEric Wong <e@80x24.org>
Fri, 30 Dec 2022 17:36:44 +0000 (17:36 +0000)
It's useful to show what's being updated, of course.

lib/PublicInbox/LeiMirror.pm

index 5952ed52ec7300ab60ef5455eee56ed90ac843f7..bfbfd8434a2f5d51c5051df64ecb269235c4de3b 100644 (file)
@@ -493,7 +493,6 @@ sub cmp_fp_do {
        $self->{-show_ref} = $opt->{1};
        do_reap($self);
        $self->{lei}->qerr("# @$cmd");
-       return if $self->{dry_run};
        $LIVE->{spawn($cmd, undef, $opt)} = [ \&fp_done, $self, $cmd,
                                                $cb, @arg ];
 }