From c3d48bfa3e8d4c0b5b08e03c2496da5b3dfcbf14 Mon Sep 17 00:00:00 2001 From: "http://grossmeier.net/" Date: Fri, 19 Oct 2012 05:34:11 +0000 Subject: [PATCH] --- ...data_if_git-annex_add_didn__39__t_complete.mdwn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/bugs/uninit_loses_data_if_git-annex_add_didn__39__t_complete.mdwn diff --git a/doc/bugs/uninit_loses_data_if_git-annex_add_didn__39__t_complete.mdwn b/doc/bugs/uninit_loses_data_if_git-annex_add_didn__39__t_complete.mdwn new file mode 100644 index 0000000000..6b5749eaf3 --- /dev/null +++ b/doc/bugs/uninit_loses_data_if_git-annex_add_didn__39__t_complete.mdwn @@ -0,0 +1,14 @@ +* Create a git-annex repo where a lot of files live. +* Start an annex add. +* Kill it. +* git-annex uninit + +Now, whatever files were annexed (ie: moved to .git/annex/objects/) but not committed are lost as the .git/annex directory was deleted. + +I know there are two conflicting issues here: + +1. if there is legitimately unused data in .git/annex then that shouldn't be unannexed +2. the above case where some files were annexed but not committed should be unannexed + +Maybe uninit could check to see if all symlinks currently in the repo pointing to something under .git/annex/objects are committed. If not, commit them then uninit, or just de-annex them. +