Skip to content

Commit

Permalink
Fix not allowing to run -d from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kezsulap committed Nov 19, 2024
1 parent acab390 commit 0d62912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def main():
from_branch = None

diff = args.diff_auto
if diff and args.code_branch:
print('Error: --diff-auto combined with --code-branch', file=sys.stderr)
if diff and not args.code_branch:
print('Error: --diff-auto not available when on code branch', file=sys.stderr)
sys.exit(1)
if args.code_branch:
from_branch = 'code'
Expand Down

0 comments on commit 0d62912

Please sign in to comment.