From 65ca0b49d6e3a4f2cce7f0dacef022ca63962fe4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 7 Feb 2022 13:12:14 -0400 Subject: [PATCH] bug report followup --- ...sync_does_not_propagate_forgetfulness.mdwn | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/bugs/sync_does_not_propagate_forgetfulness.mdwn diff --git a/doc/bugs/sync_does_not_propagate_forgetfulness.mdwn b/doc/bugs/sync_does_not_propagate_forgetfulness.mdwn new file mode 100644 index 0000000000..d0419f504d --- /dev/null +++ b/doc/bugs/sync_does_not_propagate_forgetfulness.mdwn @@ -0,0 +1,33 @@ +After a `git-annex forget`, syncing with a remote that still has the +forgotten data in its git-annex branch merges that data right back in. + +Reproduction script: + + chmod -R +w bench 2>/dev/null + rm -rf bench 2>/dev/null + mkdir bench + cd bench + git init a + cd a + git-annex init + touch foo + git-annex add foo + git commit -m add + cd .. + git clone a b + cd b + git-annex get + git-annex drop + git-annex get + git-annex drop + cd ../a + git-annex sync + git-annex forget --force + git-annex sync + git-annex log foo + cd ../b + git-annex sync + cd ../a + git-annex log foo + +--[[Joey]] -- 2.30.2