diff options
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 08ae1b9..8f202b8 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -487,7 +487,7 @@ def commit(path=None, message=None, file=None, files=[]): # First lets see if we got a message or we're on a real tty: if not sys.stdin.isatty(): - if not message or not file: + if not message and not file: raise FedpkgError('Must have a commit message or be on a real tty.') # construct the git command |