Re: git-http-backend: anonymous read, authenticated write

2013-04-12 Thread Magnus Therning
On Thu, Apr 11, 2013 at 9:34 PM, Jeff King wrote: > On Thu, Apr 11, 2013 at 08:52:56AM +0200, Magnus Therning wrote: > >> > The documentation should probably make the use of http.receivepack more >> > clear in this situation. >> >> I think that'd be good. The fact that it wasn't until several mai

Re: git-http-backend: anonymous read, authenticated write

2013-04-11 Thread Jeff King
On Thu, Apr 11, 2013 at 08:52:56AM +0200, Magnus Therning wrote: > > The documentation should probably make the use of http.receivepack more > > clear in this situation. > > I think that'd be good. The fact that it wasn't until several mails > into the thread that anyone thought of the http.rece

Re: git-http-backend: anonymous read, authenticated write

2013-04-11 Thread Jakub Narębski
W dniu 11.04.2013 03:56, Jeff King napisał: > So _if_ you fixed it by setting http.receivepack (which I think is the > simplest thing under Apache, since matching the query string there is > hard), then you would need a version of git with that fix on the > client side to actually have git prompt

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Thu, Apr 11, 2013 at 3:56 AM, Jeff King wrote: > On Thu, Apr 11, 2013 at 01:19:19AM +0200, Magnus Therning wrote: > >> Nope. I'm pretty sure this had *nothing* to do with my config. This >> is the original config, which doesn't work: >> >> $HTTP["url"] =~ "^/git" { >> cgi.assign = ( "" =>

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Jeff King
On Thu, Apr 11, 2013 at 01:19:19AM +0200, Magnus Therning wrote: > Nope. I'm pretty sure this had *nothing* to do with my config. This > is the original config, which doesn't work: > > $HTTP["url"] =~ "^/git" { > cgi.assign = ( "" => "" ) > setenv.add-environment = ( > "GIT_PROJ

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Wed, Apr 10, 2013 at 05:47:22PM -0400, Jeff King wrote: > On Wed, Apr 10, 2013 at 11:30:59PM +0200, Jakub Narębski wrote: > >>> 1. GET $repo/info/refs?service=git-receive-pack >>> >>> This makes initial contact and gets the ref information which >>> push uses to decide what it is g

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Jeff King
On Wed, Apr 10, 2013 at 10:45:44PM +0200, Magnus Therning wrote: > I was putting together a *long* response, with my different > configurations when it suddenly hit me how to make it work. > > So, this is the accesslog for a successful `git push`: > > 192.168.1.84 tracsrv.local - [10/Apr/2013:22

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Jeff King
On Wed, Apr 10, 2013 at 11:30:59PM +0200, Jakub Narębski wrote: > > 1. GET $repo/info/refs?service=git-receive-pack > > > > This makes initial contact and gets the ref information which push > > uses to decide what it is going to push. So it is read-only, and in > > an anonymous-

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Jakub Narębski
Jeff King wrote: > On Tue, Apr 09, 2013 at 07:45:53AM +0200, Magnus Therning wrote: >> % git push >> error: The requested URL returned error: 403 Forbidden while accessing >> http://magnus@tracsrv.local/git/foo.git/info/refs?service=git-receive-pack > > Something in your config is blocki

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Tue, Apr 09, 2013 at 02:24:26PM +0200, Jakub Narębski wrote: > On 09.04.2013, Magnus Therning wrote: > > > I've been trying to set up git-http-backend+lighttpd. I've managed to > > set up anonymous read-only access, and I then successfully configured > > authentication for both read and write.

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Tue, Apr 09, 2013 at 01:12:47PM -0400, Jeff King wrote: > On Tue, Apr 09, 2013 at 07:45:53AM +0200, Magnus Therning wrote: > >> I've been trying to set up git-http-backend+lighttpd. I've managed >> to set up anonymous read-only access, and I then successfully >> configured authentication for b

Re: git-http-backend: anonymous read, authenticated write

2013-04-09 Thread Jeff King
On Tue, Apr 09, 2013 at 07:45:53AM +0200, Magnus Therning wrote: > I've been trying to set up git-http-backend+lighttpd. I've managed to > set up anonymous read-only access, and I then successfully configured > authentication for both read and write. Then I get stuck. The > man-page for git-htt

Re: git-http-backend: anonymous read, authenticated write

2013-04-09 Thread Jakub Narębski
On 09.04.2013, Magnus Therning wrote: > I've been trying to set up git-http-backend+lighttpd. I've managed to > set up anonymous read-only access, and I then successfully configured > authentication for both read and write. Then I get stuck. The > man-page for git-http-backend says that the fol

git-http-backend: anonymous read, authenticated write

2013-04-08 Thread Magnus Therning
I've been trying to set up git-http-backend+lighttpd. I've managed to set up anonymous read-only access, and I then successfully configured authentication for both read and write. Then I get stuck. The man-page for git-http-backend says that the following snippet can be used for Apache 2.x: