make merge commit on export that preserves the import history

This commit is contained in:
Joey Hess 2019-05-01 13:13:00 -04:00
parent d1c283b691
commit 2bd0e07ed8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 47 additions and 8 deletions

View file

@ -235,7 +235,8 @@ fillExport r db newtree mtbcommitsha = do
Nothing -> noop
Just (tb, commitsha) ->
whenM (liftIO $ fromAllFilled <$> takeMVar allfilledvar) $
setRemoteTrackingBranch tb commitsha
makeRemoteTrackingBranchMergeCommit tb commitsha newtree
>>= setRemoteTrackingBranch tb
liftIO $ fromFileUploaded <$> takeMVar cvar