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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux