From: Paul Hänsch Date: Wed, 25 May 2022 19:39:10 +0000 (+0200) Subject: correct revision path for deleted files X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=62c7348bd249f01aa3979a40366b65020552c54a;p=shellwiki correct revision path for deleted files --- diff --git a/handlers/20_revision.sh b/handlers/20_revision.sh index dd78b92..bbbc76b 100644 --- a/handlers/20_revision.sh +++ b/handlers/20_revision.sh @@ -23,7 +23,7 @@ case "${PATH_INFO}" in else ( export PATH_INFO="${page}" cd "${_DATA}/pages${page}" - git show "${rev}:./#page.md" \ + git -C "${_DATA}" show "${rev}:pages${PATH_INFO}#page.md" \ | { printf '
'; md; printf '
'; } \ | theme_page - "${page##*/}" )