HPCC-10145 Spurious warnings when git.sh fetches from remote repo

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4918 from richardkchapman/git-hook-warnings

HPCC-10145 Spurious warnings when git.sh fetches from remote repo

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>