From: Stefan Beller Date: Tue, 18 Oct 2016 17:17:44 GMT Subject: Re: [PATCH] submodule--helper: normalize funny urls Message-ID: In-Reply-To: On Tue, Oct 18, 2016 at 10:15 AM, Junio C Hamano wrote: > > I also somehow find the "check-url-stripping" variable ugly. > > while (URL still has something that could be stripped) { for(;;) { here ? (this code would not need a variable, and for wins over while: $ git grep "while (1)" |wc -l 107 $ git grep "for (;;)" |wc -l 128 ) > if (ends with "/.") { > strip "/."; > continue; > } > if (ends with "/") { > strip "/"; > continue; > } > break; > } > > perhaps?