Commit Diff


commit - 1f3405c91dec0b4eb48df5156751b5ef6add3f37
commit + cf534ab8a1df5c0b616be2202f471b9eb1ff3092
blob - 8d1f70836b3c957b385dad80e0bc73f6739b9089
blob + b6f93ea1f854fbe1e7aa1909e1068510b3e517a1
--- lib/pack_index.c
+++ lib/pack_index.c
@@ -916,7 +916,7 @@ got_pack_index(struct got_pack *pack, int idxfd, FILE 
 			goto done;
 		}
 		nresolved += n;
-		nvalid += nresolved;
+		nvalid += n;
 	}
 
 	if (nloose + nresolved != nobj) {