From b4ac551d06fab4c96dfa39d9887e26ef4a4956be Mon Sep 17 00:00:00 2001 From: Albert Date: Fri, 29 Apr 2022 15:57:34 +0000 Subject: [PATCH] Added a comment: Reproducible Example --- ..._7571de4a3ab7030a877fa198fe4810b1._comment | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 doc/bugs/git_annex_repair_failed__58___missing_objects/comment_2_7571de4a3ab7030a877fa198fe4810b1._comment diff --git a/doc/bugs/git_annex_repair_failed__58___missing_objects/comment_2_7571de4a3ab7030a877fa198fe4810b1._comment b/doc/bugs/git_annex_repair_failed__58___missing_objects/comment_2_7571de4a3ab7030a877fa198fe4810b1._comment new file mode 100644 index 0000000000..c9d2685b28 --- /dev/null +++ b/doc/bugs/git_annex_repair_failed__58___missing_objects/comment_2_7571de4a3ab7030a877fa198fe4810b1._comment @@ -0,0 +1,48 @@ +[[!comment format=mdwn + username="Albert" + avatar="http://cdn.libravatar.org/avatar/79aaf48dabedd7cd96a9117685fbe2cc" + subject="Reproducible Example" + date="2022-04-29T15:57:34Z" + content=""" +Fast reproducible example: + +```bash +❯ mkdir annextest && cd annextest +❯ git init +Initialized empty Git repository in ./annextest/.git/ +❯ git annex init +init ok +(recording state in git...) +❯ echo \"some data\" > testfile +❯ git status +On branch master + +No commits yet + +Untracked files: + (use \"git add ...\" to include in what will be committed) + testfile + +nothing added to commit but untracked files present (use \"git add\" to track) +❯ git annex add . +add testfile +ok +(recording state in git...) +❯ git annex sync --content +commit +[master (root-commit) d5dfa14] git-annex in user@dev:~/annextest + 1 file changed, 1 insertion(+) + create mode 120000 testfile +ok +❯ git annex repair +repair Running git fsck ... +Fsck found no problems. Checking for broken branches. +Found problems, attempting repair. +Some git branches refer to missing objects: + refs/annex/last-index +To force a recovery to a usable state, retry with the --force parameter. +failed +repair: 1 failed +``` + +"""]]