From be3cf1115e68e81402e3ba0327e3243c2e09b7c9 Mon Sep 17 00:00:00 2001 From: jwodder Date: Sun, 24 Oct 2021 19:21:54 +0000 Subject: [PATCH] --- ...upkey_does_not_work_from_subdirectory.mdwn | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/bugs/lookupkey_does_not_work_from_subdirectory.mdwn diff --git a/doc/bugs/lookupkey_does_not_work_from_subdirectory.mdwn b/doc/bugs/lookupkey_does_not_work_from_subdirectory.mdwn new file mode 100644 index 0000000000..c60f4a08b7 --- /dev/null +++ b/doc/bugs/lookupkey_does_not_work_from_subdirectory.mdwn @@ -0,0 +1,21 @@ +Running `git-annex lookupkey` while in a subdirectory of a git-annex repository does not work, regardless of whether the supplied path is relative to the current directory or the root of the repository. + +### What steps will reproduce the problem? + +[[!format sh """ +git init +git-annex init +git-annex addurl --file latex/lshort.pdf https://tobi.oetiker.ch/lshort/lshort.pdf +cd latex +git-annex lookupkey lshort.pdf # Fails! +git-annex lookupkey latex/lshort.pdf # Fails! +cd .. +git-annex lookupkey latex/lshort.pdf # Succeeds +"""]] + + +### What version of git-annex are you using? On what operating system? + +8.20211011 on macOS 11.6 + +[[!meta author=jwodder]]