Created
April 14, 2019 14:15
-
-
Save goyalmohit/acffd2e69cb6f8892f67d59250559b9e to your computer and use it in GitHub Desktop.
pre-receive git hook in python script to print incoming refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import fileinput | |
# Read in each ref that the user is trying to update | |
for line in fileinput.input(): | |
print "pre-receive: Trying to push ref: %s" % line | |
sys.exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment