Hi,

Guido Günther <[email protected]> writes:
>> And maybe even better: obsolete debcheckout usage by adding something
>> like
>> 
>>     gbp clone [-a] <sourcepackagename>
>> 
>> using the repository information from Vcs-Git in Sources, s.t.
>> I don't have to lookup the URL myself. Don't forget that there could
>> be branch information in Vcs-Git. Should also support URL rewriting from
>> anonymous to authenticated like debcheckout -a.
>
> -a is indeed something that could be added.

FYI, gbp-clone now supports cloning from “vcsgit:<package>”, e.g.
“gbp clone vcsgit:golang-text”.

To be able to push to the repository, you don’t need to authenticate
when cloning it, you can also configure git to automatically substitute
the URLs:

git config --global url."git.debian.org:/git/".insteadOf 
"https://anonscm.debian.org/cgit/";
git config --global url."git.debian.org:/git/".insteadOf 
"https://anonscm.debian.org/git/";
git config --global url."git.debian.org:/git/".insteadOf 
"git://anonscm.debian.org/"

-- 
Best regards,
Michael

Reply via email to