Re: git smart-http do not authent to allow git ls-remote to be called anonymously

2012-10-31 Thread Jeff King
[+cc git@vger; please keep discussion on the list] On Sun, Oct 28, 2012 at 01:26:51PM +0800, 乙酸鋰 wrote: > > POST /git/Cat1/SubCat1/xsp.git/git-upload-pack HTTP/1.1 > User-Agent: git/1.8.0 > Host: localhost > Accept-Encoding: gzip > Content-Type: application/x-git-upload-pack-request > Accept: app

Re: git smart-http do not authent to allow git ls-remote to be called anonymously

2012-10-13 Thread Jeff King
[re-adding git@vger; please keep discussion on-list] On Sun, Oct 14, 2012 at 01:29:13PM +0800, 乙酸鋰 wrote: > Sorry, it does not serve the request. It returns http 401. > But if I add the username and password as a part of the URL, it succeeds. In that case, then you probably need to upgrade your

Re: git smart-http do not authent to allow git ls-remote to be called anonymously

2012-09-30 Thread Jeff King
On Sun, Sep 30, 2012 at 10:35:35PM +0800, 乙酸鋰 wrote: > I use smart-http on Apache. > If nothing to be pushed / pulled, I do not want password to be > supplied. And allow git ls-remote to run without password > > *.git/info/refs?service=git-upload-pack > *.git/info/refs?service=git-receive-pack >

Re: git smart-http do not authent to allow git ls-remote to be called anonymously

2012-09-30 Thread Shawn Pearce
On Sun, Sep 30, 2012 at 7:35 AM, 乙酸鋰 wrote: > I use smart-http on Apache. > If nothing to be pushed / pulled, I do not want password to be > supplied. And allow git ls-remote to run without password > > *.git/info/refs?service=git-upload-pack > *.git/info/refs?service=git-receive-pack > > I only n

git smart-http do not authent to allow git ls-remote to be called anonymously

2012-09-30 Thread 乙酸鋰
Hi, I use smart-http on Apache. If nothing to be pushed / pulled, I do not want password to be supplied. And allow git ls-remote to run without password *.git/info/refs?service=git-upload-pack *.git/info/refs?service=git-receive-pack I only need authentication on *.git/git-upload-pack *.git/git