import: Refuse to import files that are within the work tree, as that does not make sense and could cause data loss.

This commit is contained in:
Joey Hess 2015-05-11 12:57:47 -04:00
parent 6ebf615995
commit db5d831d07
3 changed files with 15 additions and 0 deletions

View file

@ -57,3 +57,6 @@ 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 :(.
> You should use `git annex add` in this case, not import.
> I've made import refuse to run in this case. [[done]] --[[Joey]]