From fe473dea4fb880746eca8287a8b75121bfd4235e Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnVnsqEy82M-MuS2gLri-az83wSQ6lXSrc" Date: Wed, 8 Apr 2015 09:08:54 +0000 Subject: Added a comment: Ignored file imported, in spite of error message --- ...ent_1_3081bda5bb600fc564185499ddfb5cf9._comment | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/forum/Why_are_ignored_files_being_deleted__63__/comment_1_3081bda5bb600fc564185499ddfb5cf9._comment (limited to 'doc') diff --git a/doc/forum/Why_are_ignored_files_being_deleted__63__/comment_1_3081bda5bb600fc564185499ddfb5cf9._comment b/doc/forum/Why_are_ignored_files_being_deleted__63__/comment_1_3081bda5bb600fc564185499ddfb5cf9._comment new file mode 100644 index 000000000..1693b286a --- /dev/null +++ b/doc/forum/Why_are_ignored_files_being_deleted__63__/comment_1_3081bda5bb600fc564185499ddfb5cf9._comment @@ -0,0 +1,35 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawnVnsqEy82M-MuS2gLri-az83wSQ6lXSrc" + nickname="Jean" + subject="Ignored file imported, in spite of error message" + date="2015-04-08T09:08:53Z" + content=""" +Today I'm seeing this: + + 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 + +This repeats until I kill the import. + +Subsequently I see that the ignored file was in fact imported: + + $ 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 + +In this case the original file was not deleted, because I used `import --duplicate`: + + $ 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 + + +"""]] -- cgit v1.2.3