summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-10-08 06:06:17 +0000
committerMichael Forney <mforney@mforney.org>2022-10-08 06:06:17 +0000
commitc6ae349e9d67ef24ce429f699c5232a9acdcb1ea (patch)
treebc023fa56553968daf376ee3bea02ce11160b5d9 /sys/src/cmd/git
parentee46f70288c4a41ce2884a9ae676c61e131bdd35 (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.
Diffstat (limited to 'sys/src/cmd/git')
-rwxr-xr-xsys/src/cmd/git/hist4
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