shithub: git9

Download patch

ref: 10e9d8e82cd808b0c3ef64860df2fc4c8f9607be
parent: 01334bc3e25c26e7c3c37b01174d0744fc26c9f5
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Nov 14 17:08:26 EST 2020

protocols: add gits to url parser

we support it as an extension, kinda; now report it.

--- a/proto.c
+++ b/proto.c
@@ -136,6 +136,8 @@
 		snprint(port, Nport, "80");
 	else if(strncmp(proto, "hjgit", 5) == 0)
 		snprint(port, Nport, "17021");
+	else if(strncmp(proto, "gits", 5) == 0)
+		snprint(port, Nport, "9419");
 	else
 		hasport = 0;
 	s = (p != nil) ? p + 3 : uri;