shithub: plan9front

Download patch

ref: 3dc18bf262e975e1efab3e4567457843fb0437c3
parent: 30a234b98fd9fd497636223f3e6dba744846cc35
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Dec 2 18:55:58 EST 2022

merge2

--- a/sys/src/cmd/git/fs.c
+++ b/sys/src/cmd/git/fs.c
@@ -453,6 +453,9 @@
 			break;
 	}
 	free(path);
+	for(i = 0; o != nil && i < aux->ncrumb; i++)
+		if(crumb(aux, i)->obj == o)
+			return nil;
 	return o;
 }