#514 Make the `--allow-empty` flag in `Commands.commit` opt-in or opt-out
Closed: Invalid by nikromen. Opened by nikromen.

In Copr, when importing package we call the Commands.import_srpm method followed by Commands.commit here. However, if importing a package in Copr is called multiple times and Commands.import_srpm runs and makes no change, the following Commands.commit makes a new commit hash with empty commit, which is unexpected behavior after calling commit multiple times with no changes.

This new behavior was introduced with this commit

It would be nice to have the --allow-empty flag as opt-in or opt-oput.


Ah, sorry I mean to create the issue on rpkg not fedpkg :D

Metadata Update from @nikromen:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

Metadata