Re: Problem with Git Push to git clone git://anonscm.debian.org/user
On Thu, Jan 04, 2018 at 01:43:31PM +0100, Geert Stappers wrote:
> On Thu, Jan 04, 2018 at 01:30:52PM +0100, Geert Stappers wrote:
> > On Thu, Jan 04, 2018 at 11:55:05AM +0000, eamanu15 . wrote:
> > > ...
> > >
> > > *git clone git://anonscm.debian.org/users/kaction-guest/cligh.git*
> > > After clone, I add the new changes and I try to make a push origin but I
> > > have this error:
> > >
> > > *The requested URL returned error: 403.*
> > HTTP & HTTPS use error code 403 to express "forbidden"
> > > What is the problem?
> > My guess is the assumption that read permission implies write permission.
> > Add a "write URL" to your git config
> At http://losc.nl/Breda/maint.html#_commit_privilege in dutch a verbose version.
> Some dutch words allready translated
> lezen : to read
> schrijven : to write
The thing I'm trying to explain
Yes, I understand the expection that reading and writing travel the same path.
Think "website" all can read, few are allowed write.
the readers are anonym, the writers have identified them self.
Thing that makes it more complicated to come with a solution:
As Debian Developer I may have privileges that Alioth guest don't have.
This is what I have in ~/src/pkg-package/.git/config among others lines
url = https://anonscm.debian.org/git/team/pkg-package.git
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://firstname.lastname@example.org/git/team/pkg-package.git
fetch = +refs/heads/*:refs/remotes/alioth/*
`git pull` reads from origin URL
When I want to _write_ I use different path, the alioth URL, I do
`git push alioth`
Leven en laten leven