Is it possible to get mixed content repositories working in conjunction with a directory special remote using importtree/exporttree?
git annex add
adheres to the annex.largefiles
setting (mimetype=text/*
), but importing or syncing from the remote invariably adds text files to the annex, including if the file was originally added to git and then modified on the remote.
I want annex.synccontent
set to true
but have tried it both ways.
What am I missing?
This is one of the still open items in ?import tree, namely "Need to support annex.largefiles when importing"
I don't think there's any major issue implementing it, other than it being a bit of bother due to things like matching on mime type. I've lifted that todo out to ?import tree should honor annex.largefiles so hopefully it'll be more of an action item on my todo list rather than buried away.
Thanks for your reply, Joey. I hadn't caught that it was an open todo, which of course explains it.
This is the missing piece of the puzzle in a valued workflow of mine. After being constantly amazed by what git-annex enables me to do, it's about time I head over to Patreon to help see it realized (in due time, of course).
Good news, it's implemented, will be in the daily builds soon and the next release.
Also you sponsored the day's work on it -- thanks for the Patreon support!
Does fixed "largefiles" currently works only for "directory" remote? What about "adb"? Or the next problem is the general one?
Syncing twice will result in replacing "git" file by "annexed" one. Moreover, it will be using SHA1 instead of default SHA256E (and totally ignore annex.backend option), which is confusing.
I seem not able to find related bug/todo/forum and can't wrap around my head what's going on here, assuming it was fixed.