t7502: perform commits using alternate editor in a subshell