Added a comment: Reproducible Example
authorAlbert <Albert@web>
Fri, 29 Apr 2022 15:57:34 +0000 (15:57 +0000)
committeradmin <admin@branchable.com>
Fri, 29 Apr 2022 15:57:34 +0000 (15:57 +0000)
doc/bugs/git_annex_repair_failed__58___missing_objects/comment_2_7571de4a3ab7030a877fa198fe4810b1._comment [new file with mode: 0644]

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 (file)
index 0000000..c9d2685
--- /dev/null
@@ -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 <file>...\" 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
+```
+
+"""]]