This is a satellite issue the one on strange mimetype driven addition

We do get report on addition of the file twice (when it switches from annex to git?)

(git)smaug:/mnt/btrfs/scrap/tmp/SIMON[master]data_BIDS
$> rm -f TEST.txt; cat BADFILE.txt >| TEST.txt; file --mime TEST.txt; git annex add TEST.txt               
TEST.txt: text/plain; charset=utf-8
add TEST.txt ok
(recording state in git...)

$> rm -f TEST.txt; sed -e 's,[{}],,g' BADFILE.txt >| TEST.txt; file --mime TEST.txt; git annex add TEST.txt
TEST.txt: text/plain; charset=utf-8
add TEST.txt (non-large file; adding content to git repository) ok
add TEST.txt (non-large file; adding content to git repository) ok
(recording state in git...)

and here is that run with --debug:

$> rm -f TEST.txt; sed -e 's,[{}],,g' BADFILE.txt >| TEST.txt; file --mime TEST.txt; git annex add --debug TEST.txt
TEST.txt: text/plain; charset=utf-8
[2019-04-26 09:57:45.451632679] read: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","symbolic-ref","-q","HEAD"]
[2019-04-26 09:57:45.455061047] process done ExitSuccess
[2019-04-26 09:57:45.455134123] read: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","show-ref","refs/heads/master"]
[2019-04-26 09:57:45.466478693] process done ExitSuccess
[2019-04-26 09:57:45.466612578] read: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","ls-files","--others","--exclude-standard","-z","--","TEST.txt"]
[2019-04-26 09:57:45.471421295] read: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","ls-files","--modified","-z","--","TEST.txt"]
[2019-04-26 09:57:45.479659995] chat: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","check-attr","-z","--stdin","annex.backend","annex.numcopies","annex.largefiles","--"]
[2019-04-26 09:57:45.479997471] read: git ["--version"]
[2019-04-26 09:57:45.482476867] process done ExitSuccess
add TEST.txt (non-large file; adding content to git repository) ok
[2019-04-26 09:57:45.494729569] read: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","diff","--name-only","--diff-filter=T","-z","--","TEST.txt"]
[2019-04-26 09:57:45.498615035] chat: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","cat-file","--batch"]
[2019-04-26 09:57:45.499023359] chat: git ["--git-dir=../.git","--work-tree=..","--literal-pathspecs","cat-file","--batch-check=%(objectname) %(objecttype) %(objectsize)"]
add TEST.txt (non-large file; adding content to git repository) ok
(recording state in git...)
[2019-04-26 09:57:45.509449016] feed: xargs ["-0","git","--git-dir=../.git","--work-tree=..","--literal-pathspecs","add","--"]
[2019-04-26 09:57:45.54937333] process done ExitSuccess
[2019-04-26 09:57:45.550142214] process done ExitSuccess
[2019-04-26 09:57:45.550690643] process done ExitSuccess
[2019-04-26 09:57:45.551282227] process done ExitSuccess

annex 7.20190219+git191-g2d6a364d4-1~ndall+1