summaryrefslogtreecommitdiff
path: root/doc/bugs/clean-duplicates_causes_data_loss
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-29 13:18:06 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-29 13:18:06 -0400
commitc6f36b240e648cf41436b9bc53979ea9cc0d4426 (patch)
treee3b4cbdffa644ab3a6c9ec6a56d6e410ee1f7b1b /doc/bugs/clean-duplicates_causes_data_loss
parent4a42d027bce5be6222de779d5fc7cb1d09d2745d (diff)
rename to non-obnoxious name
Diffstat (limited to 'doc/bugs/clean-duplicates_causes_data_loss')
-rw-r--r--doc/bugs/clean-duplicates_causes_data_loss/comment_1_0c5da8b1285d16967a0423a0e259e06b._comment36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/bugs/clean-duplicates_causes_data_loss/comment_1_0c5da8b1285d16967a0423a0e259e06b._comment b/doc/bugs/clean-duplicates_causes_data_loss/comment_1_0c5da8b1285d16967a0423a0e259e06b._comment
new file mode 100644
index 000000000..689cef97a
--- /dev/null
+++ b/doc/bugs/clean-duplicates_causes_data_loss/comment_1_0c5da8b1285d16967a0423a0e259e06b._comment
@@ -0,0 +1,36 @@
+[[!comment format=mdwn
+ username="CandyAngel"
+ subject="comment 1"
+ date="2015-04-24T11:57:35Z"
+ content="""
+Command to exemplify the \"worst case\" (untrusted causing deletion):
+
+ mkdir /tmp/ga-icd
+ cd /tmp/ga-icd
+
+ git init origin
+ cd origin
+ git commit -m create
+ git annex init origin
+ echo a > a
+ echo b > b
+ git annex add .
+ git commit -m files
+
+ mkdir /tmp/ga-icd/importme
+ echo a > a
+ echo b > b
+ echo c > c
+
+ cd /tmp/ga-icd
+ git clone origin import
+ git annex init import
+
+So we now have origin (with content for 2 files), import which knows origin has content for both files and directory we want to clean up. The following causes 'b' to be lost (hope you have backups!).
+
+ cd /tmp/ga-icd/origin
+ git annex drop b --force
+ cd /tmp/ga-icd/import
+ git annex untrust origin
+ git annex import --clean-duplicates /tmp/ga-icd/importme
+"""]]