post-checkout.in 218 Bytes
Newer Older
1 2
#!/bin/sh

3 4 5 6 7
dir=`git rev-parse --show-toplevel`
if [ -z $dir ]; then
    exit 1
fi

8
echo -n Setting up hooks from git-hooks..
9
$dir/util/sync_hooks.sh >/dev/null
10 11 12 13 14
if [ $? -eq 0 ]; then
    echo . done.
else
    exit 1
fi