prefer git_pathdup to git_path in some possibly-dangerous cases