[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "remote origin already exists" when running dpt alioth-repo



On Sun, 2015-06-07 at 13:53 +0200, Axel Beckert wrote:
> > > > Your git repository likely already has a remote named "origin".
> > > 
> > > It does, but that was added by dh-make-perl (I assume)
> > 
> > Hrm. Can't remember. I think it doesn't. But a previous and failed "dpt
> > alioth-repo call" would have.

Hmmm, I've just tried dh-make-perl from scratch and it does appear to be
adding the remote, unless I've got something else configured wrong. Not
a massive issue as I can just remove it, but thought it worth noting.

> > > # git remote -v
> > > origin	ssh://git.debian.org/git/pkg-perl/packages/libdpkg-parse-perl.git
> > > (fetch)
> > > origin	ssh://git.debian.org/git/pkg-perl/packages/libdpkg-parse-perl.git
> > > (push)
> > 
> > Looks as expected, indeed.
> 
> With pkg-perl-tools 0.21 this will no more happen. :-) I've just added
> some code to "dpt alioth-repo" which aborts if a remote named "origin"
> already exists:
> 
> https://anonscm.debian.org/cgit/pkg-perl/packages/pkg-perl-tools.git/commit/?id=87ad5a7
> 
> It also suggests this in the emitted error message:
> 
> > > > Try "git remote rename origin old-origin"

Thanks!

Andy



Reply to: