From: Junio C Hamano Date: Tue, 30 Mar 2010 23:45:36 GMT Subject: Re: [PATCH] remote-curl: Add sanity check for url Message-ID: <7voci5qspr.fsf@alter.siamese.dyndns.org> In-Reply-To: Ramkumar Ramachandra writes: > Previously, `git remote-http foo` and subsquent commands would try to > work on a HTML page. This patch fixes the bug by making one assumption > about the URL handled by libcurl: it must contain the string "://" I may be being slow but I do not see the point of this patch. I thought that remote-foo is never invoked directly from a command line with random arguments, and fetch/push frontends make the decision based on the shape of the "URL" (or whatever data used to reach the remote end) which helper to run. I do not think your patch would _break_ anything, but my question is more about the reason why we would want a duplicated check here.