diff --git a/doc/bugs/git_annex_add_adds_unlocked_files.mdwn b/doc/bugs/git_annex_add_adds_unlocked_files.mdwn new file mode 100644 index 0000000000..da6a73b60d --- /dev/null +++ b/doc/bugs/git_annex_add_adds_unlocked_files.mdwn @@ -0,0 +1,39 @@ +### Please describe the problem. + +git annex add . should ignore unlocked files + +### What steps will reproduce the problem? + +ubuntu@hostname:~/annex$ git init +Initialized empty Git repository in /home/ubuntu/annex/.git/ +ubuntu@hostname:~/annex$ git annex init +init ok +ubuntu@hostname:~/annex$ echo foo > test.txt +ubuntu@hostname:~/annex$ git annex add . +add test.txt (checksum...) ok +(Recording state in git...) +ubuntu@hostname:~/annex$ git commit -a -m first +[master (root-commit) fe54856] first + 1 file changed, 1 insertion(+) + create mode 120000 test.txt +ubuntu@hostname:~/annex$ git annex unlock test.txt +unlock test.txt (copying...) ok +ubuntu@hostname:~/annex$ echo foobar > test.txt +ubuntu@hostname:~/annex$ echo foo > test2.txt +ubuntu@hostname:~/annex$ git annex add . +add test2.txt (checksum...) ok +add test.txt (checksum...) ok <================================================== +(Recording state in git...) + +### What version of git-annex are you using? On what operating system? + + +### Please provide any additional information below. + +[[!format sh """ +# If you can, paste a complete transcript of the problem occurring here. +# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log + + +# End of transcript or log. +"""]]