-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-merge
executable file
·24 lines (24 loc) · 1.04 KB
/
post-merge
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# This hook is invoked by git-receive-pack on the remote repository, which
# happens when a git push is done on a local repository. It executes on
# the remote repository once after all the refs have been updated.
#
# This hook executes once for the receive operation. It takes no arguments,
# but gets the same information as the pre-receive hook does on its
# standard input.
#
# This hook does not affect the outcome of git-receive-pack, as it is
# called after the real work is done.
#
# This supersedes the post-update hook in that it gets both old and new
# values of all the refs in addition to their names.
#
# Both standard output and standard error output are forwarded to git
# send-pack on the other end, so you can simply echo messages for the user.
#
# The default post-receive hook is empty, but there is a sample script
# post-receive-email provided in the contrib/hooks directory in git distribution, which implements sending commit emails.
#
# To enable this hook, rename this file to "post-receive".
${0%/*}/hooker post-merge "$@"