X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=server%2Fpost-receive-delivery;h=096ff87c4f9a7f5f7e6cd2e5a7920082582ca1f1;hb=HEAD;hp=4726561d85ba85debb2be1cf980cbf036ce6132a;hpb=a24745e084f85a125a7d626810ad02b3c29f04e4;p=git-central.git diff --git a/server/post-receive-delivery b/server/post-receive-delivery index 4726561..096ff87 100755 --- a/server/post-receive-delivery +++ b/server/post-receive-delivery @@ -8,7 +8,8 @@ # # This hook clone and pull the repoditory each time a commit is pushed # in the tree. Each branch will be delivered in -# ${GIT_DELIVER_DIRECTORY}/branch. +# ${GIT_DELIVER_DIRECTORY}/branch. If ${GIT_DELIVER_COMMAND} is set, +# this command will be executed in the delivery directory. # ---------------------------- Functions @@ -60,6 +61,11 @@ generate_delivery() unset GIT_DIR git pull --rebase fi + + if [ ! -z "${GIT_DELIVER_COMMAND}" ]; then + cd ${dstdir} + ${GIT_DELIVER_COMMAND} + fi } # ---------------------------- main()