shithub: git9

Download patch

ref: dc47e402e7b53c0e81478aa9560e00ffd73d8332
parent: e5235c87cf09ae0e12a0cadad2bb7305d6f5c47a
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Nov 27 15:35:39 EST 2019

fuck, inverted condition.

--- a/fetch.c
+++ b/fetch.c
@@ -177,7 +177,7 @@
 
 	req = 0;
 	for(i = 0; i < nref; i++){
-		if(hasheq(&have[i], &want[i]) == 0)
+		if(hasheq(&have[i], &want[i]))
 			continue;
 		if((o = readobject(want[i])) != nil){
 			unref(o);
@@ -190,7 +190,7 @@
 	}
 	flushpkt(fd);
 	for(i = 0; i < nref; i++){
-		if(hasheq(&have[i], &Zhash) == 0)
+		if(hasheq(&have[i], &Zhash))
 			continue;
 		n = snprint(buf, sizeof(buf), "have %H\n", have[i]);
 		if(writepkt(fd, buf, n + 1) == -1)