git over smart-http; how to check /refs/heads/master

J. Bakshi bakshi12 at gmail.com
Fri Jun 22 10:36:46 UTC 2012


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
smart-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 ?




More information about the ubuntu-users mailing list