summaryrefslogtreecommitdiff
path: root/doc/bugs/unannex_requires_commit_for_new_directories.mdwn
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawn2MI-Ci-bS9W5NITngsBJiL8LqWYcJ458 <Emanuele@web>2015-02-23 11:21:33 +0000
committerGravatar admin <admin@branchable.com>2015-02-23 11:21:33 +0000
commitdcef16d77cf70683d716eedc6f196e40405b60c2 (patch)
treeb84a3af84aa0cde180c0c967891b93d82c45c544 /doc/bugs/unannex_requires_commit_for_new_directories.mdwn
parent411455af47d5c3268c0fe10af64d486f2ef8e2b1 (diff)
Diffstat (limited to 'doc/bugs/unannex_requires_commit_for_new_directories.mdwn')
-rw-r--r--doc/bugs/unannex_requires_commit_for_new_directories.mdwn30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/bugs/unannex_requires_commit_for_new_directories.mdwn b/doc/bugs/unannex_requires_commit_for_new_directories.mdwn
new file mode 100644
index 000000000..9f2ad1134
--- /dev/null
+++ b/doc/bugs/unannex_requires_commit_for_new_directories.mdwn
@@ -0,0 +1,30 @@
+### Please describe the problem.
+"git-annex unannex" requires an unexpected (and undesirable) commit only when adding files in a new directory. This undesirable because whenever "git-annex add" is accidentally run in a new directory, the only way to undo it is to commit first and then unannex, which adds two unwanted commits to the git log. Moreover, this behavior is not consitent with unannex on files in non-new directories: in that case unannex works as expected.
+
+### What steps will reproduce the problem?
+<pre><code>/tmp> mkdir test
+/tmp> cd test/
+/tmp/test> git init
+Initialized empty Git repository in /tmp/test/.git/
+/tmp/test (master)> git annex init
+init ok
+(recording state in git...)
+/tmp/test (master)> touch foo
+/tmp/test (master)> git annex add foo
+add foo ok
+(recording state in git...)
+/tmp/test (master)> git annex unannex foo
+unannex foo ok
+/tmp/test (master)> mkdir bar
+/tmp/test (master)> touch bar/foo
+/tmp/test (master)> git annex add bar
+add bar/foo ok
+(recording state in git...)
+/tmp/test (master)> git annex unannex bar
+git-annex: Cannot proceed with uncommitted changes staged in the index. Recommend you: git commit
+</code></pre>
+
+
+### What version of git-annex are you using? On what operating system?
+The issue occurs with last version of git-annex, available at the time of this post (2015-02-19 16:20). I could reproduce the issue in all other versions of git-annex I tried (not many though). I am using Linux, Ubuntu 12.04 amd64.
+