diff --git a/doc/forum/__96__git_annex_import__96___from_directory_loses_contents__63__/comment_1_776b5b8099125aad3bc8839d9cc1abeb._comment b/doc/forum/__96__git_annex_import__96___from_directory_loses_contents__63__/comment_1_776b5b8099125aad3bc8839d9cc1abeb._comment new file mode 100644 index 0000000000..64ec49aa6c --- /dev/null +++ b/doc/forum/__96__git_annex_import__96___from_directory_loses_contents__63__/comment_1_776b5b8099125aad3bc8839d9cc1abeb._comment @@ -0,0 +1,29 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2021-03-05T16:29:35Z" + content=""" +The conversion of the git file to an annexed file is a known problem, + + +The failure to get the content of the file when that happens is a bug +though. (I think it may be a reversion as I seem to remember that working, +but I could be mistaken.) + +It seems to be caused by an underlying inability to get the file: + + get file.txt (from test...) (checksum...) + verification of content failed + +Which in turn is due to a confusion between two different SHA1s. +When exporting a file stored in git, git-annex use the SHA1 git uses for it, +but that is not actually the SHA1 of the file, but of the file size and file +or something like that. Then when the file gets converted to an annexed +file, it uses a git-annex get with that same SHA1. But git-annex expects +the content of a SHA1 keyed file to match that SHA1, which is not the case here. + +So verification fails, and that's also why importing doesn't get the content. + +This is certainly a bug. I guess the best way to fix it would be to fix +the above todo. +"""]] diff --git a/doc/todo/import_tree_annexes_files_that_were_exported_non-annexed/comment_1_bc28c34fcbd86b39c2ee7d9051315f92._comment b/doc/todo/import_tree_annexes_files_that_were_exported_non-annexed/comment_1_bc28c34fcbd86b39c2ee7d9051315f92._comment new file mode 100644 index 0000000000..7b7293e82f --- /dev/null +++ b/doc/todo/import_tree_annexes_files_that_were_exported_non-annexed/comment_1_bc28c34fcbd86b39c2ee7d9051315f92._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2021-03-05T16:38:25Z" + content=""" +This leads to worse behavior than just converting to annexed from +non-annexed. The converted file's contents don't verify due to some +confusion between git and git-annex's use of SHA1. See + +"""]]