This commit is contained in:
https://www.google.com/accounts/o8/id?id=AItOawn0hu_TPhLcUM1Ivvn7iIoZ_iD3g_5WDcs 2014-10-06 19:03:38 +00:00 committed by admin
parent 81c8a089ed
commit 721d52dbb5

View file

@ -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.
"""]]