commit: make --only --allow-empty work without paths