summaryrefslogtreecommitdiff
path: root/hooks/post-receive
blob: 584057e303a5b27b228ed99fcd3b48bd3a150865 (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 
   12 for i in ${FILES_M[@]} ${FILES_A[@]}; do
   13   f="$(basename ${i})"
   14   d="$(dirname ${i})"
   15 
   16   # Deploy git hook updates
   17   if [ "${d}" = 'hooks' ]; then
   18     cp -v "${cache}/${i}" "${src}/hooks/"
   19   fi
   20 done

Generated by cgit