diff options
author | Eric Wong <e@80x24.org> | 2021-10-16 01:00:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-16 01:42:53 +0000 |
commit | 3688ac90abfaa8ad55b0767202aebcc8e2d02147 (patch) | |
tree | 46de296387e90401711f7d54270e966d0aabb865 /lib/PublicInbox/MultiGit.pm | |
parent | 7893b78fd691ef1e9b503e44174ff53278b02554 (diff) | |
download | public-inbox-3688ac90abfaa8ad55b0767202aebcc8e2d02147.tar.gz |
Seeing the same warning over and over again gets annoying.
Diffstat (limited to 'lib/PublicInbox/MultiGit.pm')
-rw-r--r-- | lib/PublicInbox/MultiGit.pm | 6 |
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}) { |