summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorGravatar https://launchpad.net/~jktjkt <jktjkt@web>2015-05-08 12:03:35 +0000
committerGravatar admin <admin@branchable.com>2015-05-08 12:03:35 +0000
commit3582047f7577713970122ddfdb22e3e506fd25b0 (patch)
tree25ce682b864f3d807e19b04d0f0f9ea9b27c8d27 /doc/bugs
parent2535d4d32b740172009b2ca061389609e600a3d3 (diff)
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/Data_loss_when_doing___96__git_annex_import_--force__96__.mdwn59
1 files changed, 59 insertions, 0 deletions
diff --git a/doc/bugs/Data_loss_when_doing___96__git_annex_import_--force__96__.mdwn b/doc/bugs/Data_loss_when_doing___96__git_annex_import_--force__96__.mdwn
new file mode 100644
index 000000000..8c61ba8d5
--- /dev/null
+++ b/doc/bugs/Data_loss_when_doing___96__git_annex_import_--force__96__.mdwn
@@ -0,0 +1,59 @@
+### Please describe the problem.
+
+Calling `git annex import --force file-in-working-copy` removes `file-in-working-copy` from disk.
+
+My workflow is:
+
+1) copy the CR2 files from a card to the desired directory structure using a tool of my choice,
+2) import the created directory layout to git-annex
+
+### What version of git-annex are you using? On what operating system?
+
+[[!format sh """
+$ git-annex version
+git-annex version: 5.20150327
+build flags: Pairing Testsuite S3 DBus DNS Feeds Quvi TDFA
+key/value backends: SHA256E SHA1E SHA512E SHA224E SHA384E SKEIN256E SKEIN512E MD5E SHA256 SHA1 SHA512 SHA224 SHA384 SKEIN256 SKEIN512 MD5 WORM URL
+remote types: git gcrypt S3 bup directory rsync web bittorrent tahoe glacier ddar hook external
+local repository version: 5
+supported repository version: 5
+upgrade supported from repository versions: 0 1 2 4
+"""]]
+
+### How to reproduce:
+
+[[!format sh """
+jkt@svist ~/temp $ mkdir annex-add-force-data-loss
+jkt@svist ~/temp $ cd annex-add-force-data-loss/
+jkt@svist ~/temp/annex-add-force-data-loss $ git init
+Initialized empty Git repository in /home/jkt/temp/annex-add-force-data-loss/.git/
+jkt@svist ~/temp/annex-add-force-data-loss $ echo 1234 > foo
+jkt@svist ~/temp/annex-add-force-data-loss $ ls -al
+total 16K
+drwxr-xr-x 3 jkt jkt 27 May 8 13:54 .
+drwx------ 55 jkt jkt 8.0K May 8 13:54 ..
+drwxr-xr-x 6 jkt jkt 96 May 8 13:54 .git
+-rw-r--r-- 1 jkt jkt 5 May 8 13:54 foo
+jkt@svist ~/temp/annex-add-force-data-loss $ git annex import --force foo
+git-annex: First run: git-annex init
+jkt@svist ~/temp/annex-add-force-data-loss $ git annex init
+init ok
+(recording state in git...)
+jkt@svist ~/temp/annex-add-force-data-loss $ ls -al
+total 16K
+drwxr-xr-x 3 jkt jkt 27 May 8 13:54 .
+drwx------ 55 jkt jkt 8.0K May 8 13:54 ..
+drwxr-xr-x 8 jkt jkt 119 May 8 13:54 .git
+-rw-r--r-- 1 jkt jkt 5 May 8 13:54 foo
+jkt@svist ~/temp/annex-add-force-data-loss $ git annex import --force foo
+import foo
+git-annex: foo: rename: does not exist (No such file or directory)
+failed
+git-annex: import: 1 failed
+jkt@svist ~/temp/annex-add-force-data-loss $ ls -al
+total 12K
+drwxr-xr-x 3 jkt jkt 17 May 8 13:55 .
+drwx------ 55 jkt jkt 8.0K May 8 13:54 ..
+drwxr-xr-x 8 jkt jkt 119 May 8 13:55 .git
+"""]]
+...and the file is gone :(.