When `amend` is empty, expand it to nothing instead of an empty string (which causes a git error).
extraTestScript