]> git.plutz.net Git - shellwiki/commitdiff
correct revision path for deleted files
authorPaul Hänsch <paul@plutz.net>
Wed, 25 May 2022 19:39:10 +0000 (21:39 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 25 May 2022 19:39:10 +0000 (21:39 +0200)
handlers/20_revision.sh

index dd78b92ca4aba36c683015c24cb8d7a3cb0053cb..bbbc76b4b4299ff76fdade1ae5517e00fbd35f93 100644 (file)
@@ -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 '<article class="revision">'; md; printf '</article>'; } \
       | theme_page - "${page##*/}"
     )