ref: 60d952cc1465ca99cc101be38f340a2f64550bdf
parent: 2dac6ab001dfdc4a99aeb5f44f8d675954a0e664
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 18 22:04:06 EST 2020
trim spaces from branch names
--- a/send.c
+++ b/send.c
@@ -307,7 +307,7 @@
if(strncmp(buf, "ERR ", 4) == 0)
sysfatal("%s", buf + 4);
- if(getfields(buf, sp, nelem(sp), 1, " \t\r") != 2)
+ if(getfields(buf, sp, nelem(sp), 1, " \t\r\n") != 2)
sysfatal("invalid ref line %.*s", utfnlen(buf, n), buf);
if((u = findref(upd, nupd, sp[1])) == nil)
continue;