httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <joyd...@infoservices.in>
Subject Re: [users@httpd] git over http; how to check /refs/heads/master
Date Fri, 22 Jun 2012 10:30:36 GMT
On Fri, 22 Jun 2012 13:47:13 +0530
"J. Bakshi" <joydeep@infoservices.in> wrote:

> Dear list,
> 
> I am trying to make a pre-receive hook which can check /refs/heads/master
> and based on the user name it allow/deny push to master. The git is configured over
> http here. So from apache log ; during push I can see
> 
> ````````````````````
> "GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 200 448 "-" "git/1.7.10"
> "POST /git/test.git/git-receive-pack HTTP/1.1" 200 329 "-" "git/1.7.10"
> 
> `````````````````````
> 
> How can I then check /refs/heads/master here ?
> 
> thanks
> 

Also note that I'm using the smart-http here.


```````````````````
SetEnv GIT_PROJECT_ROOT /home/git/
SetEnv GIT_HTTP_EXPORT_ALL


AliasMatch ^/git/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$          /home/git/$1
AliasMatch ^/git/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/git/$1
ScriptAliasMatch \
        "(?x)^/git/(.*/(HEAD | \
                        info/refs | \
                        objects/info/[^/]+ | \
                        git-(upload|receive)-pack))$" \
        /usr/lib/git-core/git-http-backend/$1

`````````````

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message