Cross Reference: post-receive
xref
: /
ontohub
/
git
/
hooks
/
post-receive
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
post-receive revision f94c3e135ddafe8f3395ef09bde23580328b62d4
#!/
usr
/
bin
/
env
ruby
#
# This file was placed here by Ontohub.
# It makes sure that your pushed commits will be processed properly.
#
require
File.expand
_path
(
'../../
lib
/
init
'
,
File.realdirpath
(
__FILE__
)
)
require
'git_update'
key_id
=
ENV
[
'KEY_ID'
]
repo_path
=
`
pwd
`
refname
,
oldrev
,
newrev
=
GitUpdate.retrieve
_update_environment
GitUpdate.update
_redis
(
repo_path
,
oldrev
,
newrev
,
refname
,
key_id
)