From 62c7348bd249f01aa3979a40366b65020552c54a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 25 May 2022 21:39:10 +0200 Subject: [PATCH] correct revision path for deleted files --- handlers/20_revision.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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##*/}" ) -- 2.39.2