avoid exporting non-annexed symlinks

So that importing does not replace them with plain files.

This works similarly to how the previous handling of submodules and
matchers did, except that annexed symlinks still get exported as plain
files of course, it's only non-annexed symlinks that it does not make sense
to export.

When symlinks have previously been exported, updating the export will
unexport them after upgrading to this commit.

Sponsored-by: Kevin Mueller on Patreon
This commit is contained in:
Joey Hess 2022-01-03 14:21:50 -04:00
parent 0584e096d1
commit 7e2f5edd68
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 29 additions and 7 deletions

View file

@ -26,3 +26,5 @@ Don't do anything if they are the same.
Replace symlink by actual file if they differ.
[[!meta title="export then import replaces non-annex symlinks by plain text files"]]
> [[fixed|done]] by skipping syminks. --[[Joey]]