Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (12 sloc) 0.328 kB
#!/bin/bash
## Installs the provided hooks in the current git repo
set -e
hooks_dir="$(git rev-parse --git-dir)/hooks"
source_dir="$(dirname "$0")"
for file in "$source_dir"/*.sh; do
dest="${hooks_dir}/$(basename "$file" .sh)"
[[ ! $dest -nt $file ]] && \
cp -v "$file" "$dest" && \
chmod +x "$dest"
done
exit 0
Jump to Line
Something went wrong with that request. Please try again.