git_dir holds pointers to local strings, hence MUST be const.