fix parent
This commit is contained in:
parent
bab6c570b0
commit
33bb62ff13
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue