summaryrefslogtreecommitdiff
path: root/doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn
diff options
context:
space:
mode:
authorGravatar CandyAngel <CandyAngel@web>2015-06-03 15:06:53 +0000
committerGravatar admin <admin@branchable.com>2015-06-03 15:06:53 +0000
commitf0e8f359fe793aa4922ba393676fe8a3db869d22 (patch)
tree26018d2ccb31aa928b91033e5c55788c99f9c7f7 /doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn
parentd726771cbf92739d14cafb7840b8c860250ff13a (diff)
Diffstat (limited to 'doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn')
-rw-r--r--doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn110
1 files changed, 110 insertions, 0 deletions
diff --git a/doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn b/doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn
new file mode 100644
index 000000000..30acecfb7
--- /dev/null
+++ b/doc/bugs/clean-duplicates_doesn__39__t_delete_duplicates.mdwn
@@ -0,0 +1,110 @@
+This feels really sucky, seeing as I am the one that asked for these checks to be implemented..
+
+### Please describe the problem.
+
+--clean-duplicates now refuses to remove a file due to not being able to verify its presence in the local repo, even though it is present in the local repo and git-annex knows it is present (whereis and fsck on the keys complete correctly).
+
+### What steps will reproduce the problem?
+
+See transcript
+
+### What version of git-annex are you using? On what operating system?
+
+git-annex versions:
+* 2015-05-08
+* 2015-05-28
+
+OS: Arch Linux
+
+### 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
+
+ #### gemma@spearmint (0) ~
+ ## mkdir ~/tmp/annextest
+ mkdir: created directory ?tmp/annextest?
+ #### gemma@spearmint (0) ~
+ ## cd ~/tmp/annextest
+ #### gemma@spearmint (0) ~/tmp/annextest
+ ## git init annex
+ Initialized empty Git repository in /home/gemma/tmp/annextest/annex/.git/
+ #### gemma@spearmint (0) ~/tmp/annextest
+ ## cd annex/
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## git annex init test
+ init test ok
+ (recording state in git...)
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## echo a > a
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## echo b > b
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## git annex add *
+ add a ok
+ add b ok
+ (recording state in git...)
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## git commit -m "files"
+ [master (root-commit) ce31ccf] files
+ 2 files changed, 2 insertions(+)
+ create mode 120000 a
+ create mode 120000 b
+
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## mkdir ../import
+ mkdir: created directory ?import?
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## cd ../import
+ #### gemma@spearmint (0) ~/tmp/annextest/import
+ ## echo b > b
+ #### gemma@spearmint (0) ~/tmp/annextest/import
+ ## echo a > a
+ #### gemma@spearmint (0) ~/tmp/annextest/import
+ ## cd ../annex
+
+
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## git annex import --clean-duplicates ../import/
+ import import/b (duplicate of SHA256E-s2--0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f) (unsafe)
+ Could only verify the existence of 0 out of 1 necessary copies
+
+ Could not verify that the content is still present in the annex; not removing from the import location.
+ failed
+ import import/a (duplicate of SHA256E-s2--87428fc522803d31065e7bce3cf03fe475096631e5e07bbd7a0fde60c4cf25c7) (unsafe)
+ Could only verify the existence of 0 out of 1 necessary copies
+
+ Could not verify that the content is still present in the annex; not removing from the import location.
+ failed
+ git-annex: import: 2 failed
+
+
+
+
+ #### gemma@spearmint (1) ~/tmp/annextest/annex
+ ## git annex whereis --key SHA256E-s2--0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f
+ whereis SHA256E-s2--0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f (1 copy)
+ 8d91925d-f3d2-493b-a79b-1a18658060a1 -- test [here]
+ ok
+
+
+
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## git annex fsck --key SHA256E-s2--0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f
+ fsck SHA256E-s2--0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f (checksum...)
+ ok
+ (recording state in git...)
+
+
+
+ #### gemma@spearmint (0) ~/tmp/annextest/annex
+ ## git annex import --clean-duplicates ../import/
+ import import/b (duplicate of SHA256E-s2--0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f) (unsafe)
+ Could only verify the existence of 0 out of 1 necessary copies
+
+ Could not verify that the content is still present in the annex; not removing from the import location.
+ failed
+
+# End of transcript or log.
+"""]]