diff --git a/doc/forum/Mixed_content_repos_with_import_and_export/comment_5_9f11132002d2fee9917e91a7b80a94b3._comment b/doc/forum/Mixed_content_repos_with_import_and_export/comment_5_9f11132002d2fee9917e91a7b80a94b3._comment new file mode 100644 index 0000000000..3e97d977fc --- /dev/null +++ b/doc/forum/Mixed_content_repos_with_import_and_export/comment_5_9f11132002d2fee9917e91a7b80a94b3._comment @@ -0,0 +1,84 @@ +[[!comment format=mdwn + username="amerlyq+annex@12121d70a602f094228689a0a24d348d478a8af1" + nickname="amerlyq+annex" + avatar="http://cdn.libravatar.org/avatar/3d63c9f436b45570d45bd003e468cbd3" + subject="adb special remote" + date="2020-12-21T06:36:32Z" + content=""" +Does fixed \"largefiles\" currently works only for \"directory\" remote? +What about \"adb\"? Or the next problem is the general one? + + # [How-To Reproduce]: git-annex version: 8.20201127-gdad8442572 + cd /tmp + mkdir books + cd books + git init . + git config --local user.name annex + git config --local user.email test + + git annex init test + git annex config --set annex.largefiles 'not mimetype=text/*' + + echo hello > README.rst + git add README.rst + git commit -m init + + mkdir new old + for f in old/1 old/2 new/3 new/4; do (head -c100 /dev/zero;echo $f) > $f; done + git annex add + git commit -m annex + + git-annex initremote android type=adb androiddirectory=/storage/0000-0000/books encryption=none exporttree=yes importtree=yes + git config remote.android.annex-tracking-branch master + + +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. + + $ git annex sync --content + commit + On branch master + nothing to commit, working tree clean + ok + list android ok + update refs/remotes/android/master ok + + Already up to date! + Merge made by the 'recursive' strategy. + export android README.rst + /tmp/amer/export140847-1: 1 file pushed, 0 skipped. 0.1 MB/s (6 bytes in 0.000s) + ok + export android new/3 + .git/annex/objects/kJ/Q4/SHA256E-s106--29...0 skipped. 1.3 MB/s (106 bytes in 0.000s) + ok + export android new/4 + .git/annex/objects/5X/pv/SHA256E-s106--be...0 skipped. 1.9 MB/s (106 bytes in 0.000s) + ok + export android old/1 + .git/annex/objects/1k/J6/SHA256E-s106--d5...0 skipped. 2.3 MB/s (106 bytes in 0.000s) + ok + export android old/2 + .git/annex/objects/Gw/31/SHA256E-s106--52...0 skipped. 1.7 MB/s (106 bytes in 0.000s) + ok + (recording state in git...) + + $ git annex sync --content + commit + On branch master + nothing to commit, working tree clean + ok + list android ok + update refs/remotes/android/master ok + + Updating 803974d..f340cca + Fast-forward + README.rst | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + mode change 100644 => 120000 README.rst + (recording state in git...) + + $ readlink README.rst + .git/annex/objects/gK/P3/SHA1--ce013625030ba8dba906f756967f9e9ca394464a/SHA1--ce013625030ba8dba906f756967f9e9ca394464a + +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. +"""]]