From 48fdb3e2690834c13f01d2e26bce7fb9f0403dce Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Feb 07 2023 01:02:17 +0000 Subject: allow empty commits to be able to add empty commit to satisfy autospec Signed-off-by: Miroslav Suchý --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index c973f0f..6a0e9eb 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -1845,7 +1845,7 @@ class Commands(object): # construct the git command # We do this via subprocess because the git module is terrible. - cmd = ['git', 'commit'] + cmd = ['git', 'commit', '--allow-empty'] if signoff: cmd.append('-s') if self.quiet: