bbf7dcc193
* Fix bug upgrading from direct mode to v7: when files in the repository were already committed as v7 unlocked files elsewhere, and the content was present in the direct mode repository, the annexed files got their full content checked into git. * Fix bug that caused v7 unlocked files in a direct mode repository to get locked when committing. This commit was sponsored by Nick Piper on Patreon.
18 lines
646 B
Markdown
18 lines
646 B
Markdown
Upgrade from a direct mode repo to a v7 repo can cause annexed files to
|
|
get checked into git, in an edge case.
|
|
|
|
The annexed files need to be already v7 unlocked files, and their content
|
|
needs to be present in the direct mode repo. Of course this is an unusual
|
|
situation.
|
|
|
|
Then, the upgrade to v7 from direct mode makes a commit
|
|
"commit before upgrade to annex.version 6" which converts the pointer
|
|
files into the full file content.
|
|
|
|
Also, `git annex sync` in the direct mode repo before the upgrade
|
|
converted the v7 unlocked files back to locked files. (While also a bug,
|
|
this helped mask the other bug..)
|
|
|
|
Both [[fixed|done]] now.
|
|
|
|
--[[Joey]]
|