add a condition to apply trim_git_name.