ref: 20492036cf7d28ace43df033320d054140e64586
parent: 10474a188da91af5dd1bfed66aa1ac18e0b9a124
author: Ori Bernstein <[email protected]>
date: Thu Dec 3 20:06:42 EST 2020
fix backlink in file page (thanks boehm.igor) The backlink in file pages should use the hash intead of the ref path, because the ref path includes 'object/' and breaks the bind.
--- a/shithub
+++ b/shithub
@@ -213,7 +213,7 @@
prelude $repo $file
echo ' <h1><a href="/git/repos.html">Git</a>: <a
- href='/git/$gituser/$repo/$ref/info.html'>'$repo'</a></h1>
+ href='/git/$gituser/$repo/$hash/info.html'>'$repo'</a></h1>
<p>'$repo' @ <a href="'/git/$gituser/$repo/$hash/f.html'">'$hash'</a>
<pre id="code">'
if(test -f $file){