summaryrefslogtreecommitdiff
path: root/doc/bugs/git_annex_add_adds_unlocked_files.mdwn
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawn0hu_TPhLcUM1Ivvn7iIoZ_iD3g_5WDcs <Greg@web>2014-10-06 19:03:38 +0000
committerGravatar admin <admin@branchable.com>2014-10-06 19:03:38 +0000
commit90ff3528950d1ca495e5263b0e8bdbcd46b0dce0 (patch)
treec7b6f9eec58bf1fe0e62b18c62ec0389843af3af /doc/bugs/git_annex_add_adds_unlocked_files.mdwn
parent2a714749ec199af25da8920a523d56b8bd12ef20 (diff)
Diffstat (limited to 'doc/bugs/git_annex_add_adds_unlocked_files.mdwn')
-rw-r--r--doc/bugs/git_annex_add_adds_unlocked_files.mdwn39
1 files changed, 39 insertions, 0 deletions
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 000000000..da6a73b60
--- /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.
+"""]]