Commit Diff


commit - be97ab03efd83aac37b83f2df2dea936213b456c
commit + 88056de12473f245b6569a4a9fba404db0d78093
blob - 58ca31024c68f18a97698cdbe0ea6c5702560fba
blob + c54b7b77f746053c289831f1d3bb387b9c11cdf5
--- lib/pack_index.c
+++ lib/pack_index.c
@@ -914,7 +914,7 @@ got_pack_index(struct got_pack *pack, int idxfd, FILE 
 			goto done;
 		}
 		nresolved += n;
-		nvalid += nresolved;
+		nvalid += n;
 	}
 
 	if (nloose + nresolved != nobj) {