about summary refs log tree commit homepage
path: root/lib/PublicInbox/MultiGit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/MultiGit.pm')
-rw-r--r--lib/PublicInbox/MultiGit.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/PublicInbox/MultiGit.pm b/lib/PublicInbox/MultiGit.pm
index 91d7998a..9429a00c 100644
--- a/lib/PublicInbox/MultiGit.pm
+++ b/lib/PublicInbox/MultiGit.pm
@@ -45,7 +45,11 @@ sub read_alternates {
                                 $alt{$rel} = $score;
                         } else {
                                 warn "W: stat($dir) failed: $! ($f)";
-                                $alt{$rel} = $score unless $prune;
+                                if ($prune) {
+                                        ++$$prune;
+                                } else {
+                                        $alt{$rel} = $score;
+                                }
                         }
                 }
         } elsif (!$!{ENOENT}) {