forum/Why are ignored files being deleted?git-annexhttp://git-annex.branchable.com/forum/Why_are_ignored_files_being_deleted__63__/git-annexikiwiki2015-04-29T17:56:46ZIgnored file imported, in spite of error messagehttp://git-annex.branchable.com/forum/Why_are_ignored_files_being_deleted__63__/comment_1_3081bda5bb600fc564185499ddfb5cf9/Jean2015-04-08T09:08:53Z2015-04-08T09:08:53Z
<p>Today I'm seeing this:</p>
<pre><code>git-annex: user error (xargs ["-0","git","--git-dir=/.../annex/.git","--work-tree=/.../annex","add","--"] exited 123)
failed
(Recording state in git...)
The following paths are ignored by one of your .gitignore files:
btsync/DCIM (1)/Camera 1/20150101090842.jpg.tmp
Use -f if you really want to add them.
fatal: no files added
git-annex: user error (xargs ["-0","git","--git-dir=/.../annex/.git","--work-tree=/.../annex","add","--"] exited 123)
failed
(Recording state in git...)
^C
</code></pre>
<p>This repeats until I kill the import.</p>
<p>Subsequently I see that the ignored file was in fact imported:</p>
<pre><code>$ ls -lh "btsync/DCIM (1)/Camera 1/20150101090842.jpg.tmp"
lrwxrwxrwx 1 user user 203 Jan 11 14:11 btsync/DCIM (1)/Camera 1/20150101090842.jpg.tmp -> ../../../.git/annex/objects/0K/GX/SHA256E-s0--e3b0c44298ec1c149aebe4c8996eb92427ae41e4649b934ca495991b7852b855.jpg.tmp/SHA256E-s0--e3b0c44298ec1c149aebe4c8996eb92427ae41e4649b934ca495991b7852b855.jpg.tmp
</code></pre>
<p>In this case the original file was not deleted, because I used <code>import --duplicate</code>:</p>
<pre><code>$ ls -lh "../btsync/DCIM (1)/Camera 1/20150101090842.jpg.tmp"
-rw-rw-r-- 1 user user 0 Jan 11 14:11 ../btsync/DCIM (1)/Camera 1/20150101090842.jpg.tmp
</code></pre>
comment 2http://git-annex.branchable.com/forum/Why_are_ignored_files_being_deleted__63__/comment_2_178aa574855a3bfffab4b21f90a84092/joey2015-04-29T17:56:46Z2015-04-29T17:48:12Z
<p>It seems this was also filed as a bug report
<a href="http://git-annex.branchable.com/bugs/git_annex_import:_ignored_names_fatal/">http://git-annex.branchable.com/bugs/git_annex_import:_ignored_names_fatal/</a> so I'll deal with it there.</p>