commit: fix "--amend --only" with no pathspec