Always cd to git root directory for consistency. Move prepare-commit-msg hook creation to "git gerrit submit" time to work more safely with "repo" tool.