
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.54 KB | hits: 18 | expires: Never
How can I manually run the hook post-receive on git?
cannot run post-receive: No such file or directory
# Print the log with full hashes and commit subject, so that you can
# figure out which hashes to use for the FROM and TO range.
/path/to/repo$ git log --pretty=%H %s
# assuming the FROM commit identifies as 999988887777
# and te TO commit identifies as 000011112222
# (Note: use the full length hashes; I've shortened them for the example)
/path/to/repo$ .git/hooks/post-receive <<MARK
999988887777 000011112222 refs/heads/master
MARK