shithub: git9

Download patch

ref: a18673d25a46c235289eb9b5748af1eb4ecd7170
parent: 7e8b355535c10bd7db3bd0d7085286c555fd3497
author: Ori Bernstein <[email protected]>
date: Tue Feb 23 20:37:10 EST 2021

packs: ...saving before commmitting helps.

The correct change was sitting in my editor buffer.

--- a/pack.c
+++ b/pack.c
@@ -1323,9 +1323,9 @@
 		return 0;
 	if((t = readobject(tree)) == nil)
 		return -1;
-	if(c->type != GTree){
-		fprint(2, "load: %H: not tree\n", c->hash);
-		unref(c);
+	if(t->type != GTree){
+		fprint(2, "load: %H: not tree\n", t->hash);
+		unref(t);
 		return -1;
 	}
 	addmeta(v, has, t, dpath, mtime);