[PATCH] Provide access to git_dir through get_git_dir().