diff --git a/doc/bugs/lookupkey_--ref_refuses_to_run_in_bare_repository/comment_2_be3a369499c5a745536169c36eb9a321._comment b/doc/bugs/lookupkey_--ref_refuses_to_run_in_bare_repository/comment_2_be3a369499c5a745536169c36eb9a321._comment new file mode 100644 index 0000000000..076052de6a --- /dev/null +++ b/doc/bugs/lookupkey_--ref_refuses_to_run_in_bare_repository/comment_2_be3a369499c5a745536169c36eb9a321._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="matrss" + avatar="http://cdn.libravatar.org/avatar/59541f50d845e5f81aff06e88a38b9de" + subject="comment 2" + date="2024-08-28T14:11:36Z" + content=""" +@mih if you need a workaround now, you can parse the key from `git show :` or even just `git show `. In the case of locked files, it will return something like `.git/annex/objects/.../...//` (i.e. the symlink target), and in the case of unlocked files it is something like `/annex/objects/`. This is what forgejo-aneksajo does here: . `lookupkey --ref` would massively simplify that code though. +"""]]