commit: Don't call substitute-in-file-name haphazardly.