diff options
author | Michael Forney <mforney@mforney.org> | 2022-10-08 06:06:17 +0000 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-10-08 06:06:17 +0000 |
commit | c6ae349e9d67ef24ce429f699c5232a9acdcb1ea (patch) | |
tree | bc023fa56553968daf376ee3bea02ce11160b5d9 | |
parent | ee46f70288c4a41ce2884a9ae676c61e131bdd35 (diff) |
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.
-rwxr-xr-x | sys/src/cmd/git/hist | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/git/hist b/sys/src/cmd/git/hist index 7602d30f1..38ae279c4 100755 --- a/sys/src/cmd/git/hist +++ b/sys/src/cmd/git/hist @@ -7,8 +7,8 @@ gitup 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 |