diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-12-06 17:13:19 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-12-06 17:13:19 -0500 |
commit | b6525d78d06d00d64de533c7bc33e541469786b2 (patch) | |
tree | dbf3f86a8deb9a212a7eb1377cc31990a4563e8e | |
parent | c65078e75a30ef6d0cce7db464ee45e591457ea2 (diff) | |
download | b4-b6525d78d06d00d64de533c7bc33e541469786b2.tar.gz |
ez: fix prep -n with a fork-point specified
Fix logic when a fork-point is used with the default commit strategy.
Reported-by: Mark Brown <broonie@kernel.org>
Link: https://msgid.link/Y4+9Fz7lkzSnFV72@sirena.org.uk
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ez.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -335,9 +335,11 @@ def start_new_series(cmdargs: argparse.Namespace) -> None: logger.debug('branch %s does contain fork-point %s', mybranch, cmdargs.fork_point) basebranch = mybranch break + else: + basebranch = mybranch if basebranch is None: - logger.critical('CRITICAL: fork-point %s is not on the current branch.') + logger.critical('CRITICAL: fork-point %s is not on the current branch.', cmdargs.fork_point) logger.critical(' Switch to the branch you want to use as base and try again.') sys.exit(1) |