avoid importing deleting submodule

import: When the previously exported tree contained a submodule,
preserve it in the imported tree so it does not get deleted.

The export exclude log, which was used for non-preferred content,
now also includes the submodules. Since the log format is git ls-tree
output, this does not break backwards compatibility.
This commit is contained in:
Joey Hess 2021-03-12 13:28:43 -04:00
parent ed717cf646
commit 1cb154f457
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 68 additions and 56 deletions

View file

@ -34,4 +34,4 @@ It is the rock that I stand on.
[[!tag projects/datalad]]
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,7 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2021-03-12T17:28:10Z"
content="""
All right, both export and import are fixed.
"""]]