git-annex/doc/bugs/direct_mode_to_v7_upgrade_bug.mdwn
Joey Hess bbf7dcc193
fix bugs involving v7 unlocked files and direct mode
* 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.
2018-12-11 13:47:35 -04:00

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]]