Thursday, June 2, 2016

python - git hook and ssh on server

I have a git repo on a server. I would like to run a update hook on this when a push is done.



I am unable to get git revlist or take any information from the user because i can't enable tty.



I have written the hook in python. I would like it so I can retrieve commit history from my local repo and use that information in the process of my update hook, which checks for pattern in commits.



the problem i am having is that when i run the command from my script it is being executed on my server.




Please any advice would really be appreciated.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...