This commit is contained in:
parent
5050377d4c
commit
d5d2413cbb
1 changed files with 59 additions and 0 deletions
|
@ -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 :(.
|
Loading…
Reference in a new issue