| |
@@ -1867,7 +1867,9 @@
|
| |
|
| |
# construct the git command
|
| |
# We do this via subprocess because the git module is terrible.
|
| |
- cmd = ['git', 'commit', '--allow-empty']
|
| |
+ cmd = ['git', 'commit']
|
| |
+ if not self.is_retired() and self.uses_rpmautospec:
|
| |
+ cmd.append('--allow-empty')
|
| |
if signoff:
|
| |
cmd.append('-s')
|
| |
if self.quiet:
|
| |
This implements onosek's suggestion in https://pagure.io/rpkg/pull-request/644#comment-183143
Fix #677