Call git_pathdup() rather than xstrdup(git_path("..."))