shithub: riscv

Download patch

ref: 5af61e312772ca2a42c19f40cecf40e8d2c3e800
parent: 1db8008a2e6cb44b6b14d015ad1ee058a49a7a09
author: Ori Bernstein <[email protected]>
date: Mon Sep 25 20:03:49 EDT 2023

git/fs: when statting an object, generate a correct qid

we need to pass the parent crumb, not the child crumb,
in order to deduplicate correctly against the parent.

--- a/sys/src/cmd/git/fs.c
+++ b/sys/src/cmd/git/fs.c
@@ -485,7 +485,7 @@
 			if(!w)
 				return Ebadobj;
 			q->type = (w->type == GTree) ? QTDIR : 0;
-			q->path = qpath(c, i, w->id, qdir);
+			q->path = qpath(p, i, w->id, qdir);
 			c->mode = m;
 			c->mode |= (w->type == GTree) ? DMDIR|0755 : 0644;
 			c->obj = w;