shithub: git9

Download patch

ref: 398a2a43e2042e5e0cfb94ae86c2c7bf441b01e7
parent: 1549f34ceeb99e24edea6618ef148c78e68baa31
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Nov 15 00:22:54 EST 2020

git/serve: don't hardcode offset deltas on

The safe option is offset deltas disabled.
git/clone doesn't like offset deltas so much
anyways.

--- a/pack.c
+++ b/pack.c
@@ -1571,7 +1571,7 @@
 	dprint(1, "picking deltas\n");
 	pickdeltas(meta, nmeta);
 	dprint(1, "generating pack\n");
-	r = genpack(fd, meta, nmeta, h, 1);
+	r = genpack(fd, meta, nmeta, h, 0);
 	for(i = 0; i < nmeta; i++)
 		freemeta(meta[i]);
 	free(meta);