fix parent

This commit is contained in:
Joey Hess 2019-02-22 12:44:22 -04:00
parent bab6c570b0
commit 33bb62ff13
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -67,7 +67,10 @@ buildImportCommit remote basecommit subdir importable commitmode commitmessage =
if basetree == importedtree && null parents if basetree == importedtree && null parents
then return Nothing then return Nothing
else do else do
commit <- inRepo $ Git.Branch.commitTree commitmode commitmessage parents importedtree let commitparents = if null parents
then [basecommit]
else parents
commit <- inRepo $ Git.Branch.commitTree commitmode commitmessage commitparents importedtree
return (Just commit) return (Just commit)
updateexportdb importedtree = updateexportdb importedtree =
withExclusiveLock (gitAnnexExportLock (uuid remote)) $ do withExclusiveLock (gitAnnexExportLock (uuid remote)) $ do