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.
This commit is contained in:
Joey Hess 2018-12-11 13:46:22 -04:00
parent 6718a9b200
commit bbf7dcc193
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 17 additions and 2 deletions

View file

@ -9,4 +9,10 @@ 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]]