#!/usr/bin/bash

readarray revs

dirpath="$GIT_DIR/hooks/post-receive-chained.d"
files=("$dirpath"/*)

# pee redirects stdin to each of the post-receive hooks in place.
if [[ -e "$files" || -L "$files" ]]; then
    /usr/bin/pee "$dirpath"/*
fi
