ref: df321d03626c944a93be677b150f612da44b9f42
parent: 3af6069b0f9248d0449799dc0e09ff38d71e36f3
author: qwx <qwx@sciops.net>
date: Tue Sep 9 20:49:15 EDT 2025
git/get: properly skip entire argument string once the nheads limit is surpassed (thanks ori)
--- a/sys/src/cmd/git/get.c
+++ b/sys/src/cmd/git/get.c
@@ -477,6 +477,7 @@
void
main(int argc, char **argv)
{+ char *s;
Conn c;
ARGBEGIN{@@ -485,8 +486,9 @@
case 'd': chattygit++; break;
case 'l': listonly++; break;
case 'h':
+ s = EARGF(usage());
if(nheads < nelem(heads))
- if(hparse(&heads[nheads], EARGF(usage())) == 0)
+ if(hparse(&heads[nheads], s) == 0)
nheads++;
break;
default:
--
⑨