Item11267: better handling of git hooks.

Skip installing the hooks if the upstream repo isn't part of the foswiki
project.  Not sure if this is a great idea.  Repos that are github forks
of foswiki will not get hooks installed, which means we may have to fix
up push requests.