summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U <Richard@web>2011-04-03 00:27:30 +0000
committerGravatar admin <admin@branchable.com>2011-04-03 00:27:30 +0000
commit6c320804395b3bcb043e2d73322465c2ab7212fc (patch)
treed097145cba43ab6ffc02b3a8bc9dd7f2d46f8973 /doc/bugs
parent2a08107ce46a0ebd444af274b7923f0b3043de9d (diff)
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/No_easy_way_to_re-inject_a_file_into_an_annex.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/bugs/No_easy_way_to_re-inject_a_file_into_an_annex.mdwn b/doc/bugs/No_easy_way_to_re-inject_a_file_into_an_annex.mdwn
new file mode 100644
index 000000000..ced4fc5a0
--- /dev/null
+++ b/doc/bugs/No_easy_way_to_re-inject_a_file_into_an_annex.mdwn
@@ -0,0 +1,10 @@
+My local git index got corrupted and I needed to clone and annex get all data from my main repo.
+
+Some files were never copied anywhere so I am stuck with symlinks to nowhere.
+
+I tried to copy over the symlink with a copy of the actual file, which did not work. Trying to unlock, copying over the symlink, and relock did not work, either.
+
+Then, I copied the annex object to the correct place in .git/annex/objects/..., set all modes, re-ran fsck and the file re-appeared.
+
+
+Long story short, I think there should be a `git annex reinject $file` or similar which will take a file, either one replacing the symlink or with an arbitrary path, and put it into the correct place in the object store. Called normally, it should reject all reinjects where the checksum does not match. With --force, this should be overridden. For reasons of safety, WORM should always require --force.