export: Fix false positive in export conflict detection
It occurred when the same tree was exported by multiple clones. nub out identical trees. This commit was sponsored by Jochen Bartl on Patreon.
This commit is contained in:
parent
ca200c561d
commit
91b799d1a6
2 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,7 @@ changeExport r ea db new = do
|
|||
-- When there was an export conflict, this resolves it.
|
||||
--
|
||||
-- The ExportTree is also updated here to reflect the new tree.
|
||||
case map exportedTreeish old of
|
||||
case nub (map exportedTreeish old) of
|
||||
[] -> updateExportTree db emptyTree new
|
||||
[oldtreesha] -> do
|
||||
diffmap <- mkDiffMap oldtreesha new db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue