1 Nov 2007 01:22
Re: remote#branch
Jakub Narebski <jnareb <at> gmail.com>
2007-11-01 00:22:33 GMT
2007-11-01 00:22:33 GMT
Mike Hommey wrote:
> On Wed, Oct 31, 2007 at 10:03:16AM +0100, Andreas Ericsson <ae <at> op5.se> wrote:
>>>
>>>Or copied from gitweb.
>>>
>> Perhaps, but I've never seen that done. Partly because you can't be sure
>> the HTTP url is the same as the git address (perhaps people are used to
>> this from CVS and the likes), and partly because you'd, for most cases,
>> want to use git:// or ssh transport instead of http.
>>
>> It might be nifty to have gitweb print some git-valid locator for a repo
>> though, or even a full copy-pastable "git clone git://host/path/to/repo.git"
>> command-line thingie. I'll look into it when I have leisure.
>
> Hum... it already does print http and git "Mirror URL"s which are ready to
> be copy/pasted to feed git clone arguments.
The only thing to add (for absolutely no gain IMHO) would be code
which would add quotes (single or double) around URL/path which
contain spaces:
Mirror URL 'git://repo.or.cz/repo with spaces.git'
'http://repo.or.cz/r/repo with spaces.git'
Push URL 'repo.or.cz:/srv/git/repo with spaces.git'
--
--
Jakub Narebski
Poland
RSS Feed