]> Sergey Matveev's repositories - public-inbox.git/commit
lei_mirror: avoid dir/file conflicts in update-ref
authorEric Wong <e@80x24.org>
Fri, 10 Feb 2023 03:58:52 +0000 (03:58 +0000)
committerEric Wong <e@80x24.org>
Fri, 10 Feb 2023 07:40:54 +0000 (07:40 +0000)
commit8a1708f40df5f8d367f032eef746e5390f614a50
treeb3e961b247c0ea700941a330767391ea3c6acdd9
parent5541df4f6dbf7d58590a65cff39288e6005228b0
lei_mirror: avoid dir/file conflicts in update-ref

Using the files ref backend for git, `delete' and `create'
operations for `update-ref --stdin' need to be processed in
separate transactions to avoid conflicts in cases where a file
becomes a directory (or presumably, vice versa).
lib/PublicInbox/LeiMirror.pm