ref: 141c18aee8b14bf8656edb7171856b7d8f77790f
parent: a411ced83d159d9a3641fa394d70483400edaa85
author: Michael Forney <mforney@mforney.org>
date: Sat Oct 8 02:06:17 EDT 2022
git/hist: fix with repository other than / $gitroot has a trailing slash only when the repository is at /. When it is not, this path construction doesn't work. Use $gitfs/... like the other git scripts.
--- a/sys/src/cmd/git/hist
+++ b/sys/src/cmd/git/hist
@@ -7,8 +7,8 @@
fn dodiff {
while(t=`{read}){
h=$t(1)
- o=$gitroot^.git/fs/object/`{git/query $h~}
- c=$gitroot^.git/fs/object/$h
+ o=$gitfs/object/`{git/query $h~}
+ c=$gitfs/object/$h
echo 'Hash:' $h
echo -n 'Date: '; date `{walk -em $c/msg}
echo -n 'Author: '; cat $c/author
--
⑨