summaryrefslogtreecommitdiff
path: root/doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn
diff options
context:
space:
mode:
authorGravatar https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web>2014-07-28 22:40:43 +0000
committerGravatar admin <admin@branchable.com>2014-07-28 22:40:43 +0000
commit79342bc9f669527ba5c9122884d0f6cd5f3917ce (patch)
tree7977f60eae99b9522e48ef9869aea798828f41d0 /doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn
parent0ff00e23236e37fc5fab1fe41eb8d5479c2f2bb7 (diff)
back from the dead, or not
Diffstat (limited to 'doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn')
-rw-r--r--doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn b/doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn
new file mode 100644
index 000000000..c526eaa56
--- /dev/null
+++ b/doc/bugs/direct_command_leaves_repository_inconsistent_if_interrupted.mdwn
@@ -0,0 +1,23 @@
+### Please describe the problem.
+
+When `git annex direct` is interrupted (either through a power outage or deliberate `control-c`) it may leave the repository in an inconsistent state.
+
+A typical situation is `git-annex` believing that the repo is in `indirect` mode while the files are not symlinks anymore.
+
+I believe I have described this problem here before, but the bug report was deleted as part of the may 29th purge (222f78e9eadd3d2cc40ec94ab22241823a7d50d9), file `doc/bugs/git_annex_indirect_can_fail_catastrophically.mdwn`.
+
+### What steps will reproduce the problem?
+
+`git annex direct` on a large repository, `control-c` before it finishes.
+
+Observe how a lot of files are now considered to be in the famous [[typechange status|forum/git-status_typechange_in_direct_mode/]] in git.
+
+### What version of git-annex are you using? On what operating system?
+
+5.20140717 on Debian Jessie.
+
+### Please provide any additional information below.
+
+I wish i could resume the `git annex direct` command, but this will do a `git commit -a` and therefore commit all those files to git directly. It still seems to me that `git annex` should never run `git commit -a` for exactly that kind of situations.
+
+I think that's it for now. -- [[anarcat]]