blob: d759dcbff3dbea455ec352fcbf11c6af5ac49632 (
plain)
1 #!/usr/bin/env bash
2
3 source ~/git-shell-variables.sh
4 source ~/bin/libgithook.sh
5
6 load_file_actions
7 dump_sess
8
9 cache="$(deploy_cache ${NEWREV})"
10
11 for i in ${FILES_M[@]} ${FILES_A[@]}; do
12 f="$(basename ${i})"
13 d="$(dirname ${i})"
14
15 # Deploy git hook updates
16 if [ "${d}" = 'hooks' ]; then
17 cp -v "${cache}/${i}" "${src}/hooks/"
18 fi
19 done
|