diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-04-29 13:18:06 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-04-29 13:18:06 -0400 |
commit | c6f36b240e648cf41436b9bc53979ea9cc0d4426 (patch) | |
tree | e3b4cbdffa644ab3a6c9ec6a56d6e410ee1f7b1b /doc/bugs/clean-duplicates_causes_data_loss.mdwn | |
parent | 4a42d027bce5be6222de779d5fc7cb1d09d2745d (diff) |
rename to non-obnoxious name
Diffstat (limited to 'doc/bugs/clean-duplicates_causes_data_loss.mdwn')
-rw-r--r-- | doc/bugs/clean-duplicates_causes_data_loss.mdwn | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/bugs/clean-duplicates_causes_data_loss.mdwn b/doc/bugs/clean-duplicates_causes_data_loss.mdwn new file mode 100644 index 000000000..df1f7e131 --- /dev/null +++ b/doc/bugs/clean-duplicates_causes_data_loss.mdwn @@ -0,0 +1,27 @@ +### Please describe the problem. + +Use of git-annex import --clean-duplicates can cause data loss, where git-annex deletes content that it doesn't actually have a copy of (i.e. there is no duplicate). + +### What steps will reproduce the problem? + +I've written a quick'n'dirty test script which goes through a bunch of combinations and tests --clean-duplicates. Given an 'origin' repo containing 'a' and 'b' content and a clone of it ('import') which doesn't contain 'a' and 'b' content. + +g-a import --clean-duplicates ~/tmp/importme (containing a, b and c) into 'import' after: + + Origin is set to trusted in import, b is dropped from within origin: + b is deleted from importme even though no annexes have copies (reasonable, as origin is set to trusted and import thinks it has the content). + + Origin is set to semitrusted in import, b is dropped within origin: + b is deleted from importme even though no annexes have copies (this is most likely one to bite people). + + Origin is set to untrusted in import, b is dropped within origin: + b is deleted from importme even though no annexes have copies and git-annex has been explicitly told to not trust information about origin :( This is really surprising behaviour! + +### What version of git-annex are you using? On what operating system? + +* 5.20150409 +* Arch Linux (git-annex-bin) + +### Please provide any additional information below. + +I can provide the script if it is wanted (coded in Perl, couple of non-core dependencies). |