aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-04-28 18:13:36 +0900
committerAkihiko Odaki <akihiko.odaki@daynix.com>2024-04-28 18:18:13 +0900
commit01a33087dc5a5cf19efca240a8d80b98e7823c7b (patch)
tree84f64882ac91be3edbe3960e27e3c320f293802d
parentb590645c19ef1e1ebbc3a6b7c7fc2d58e35846ac (diff)
downloadb4-01a33087dc5a5cf19efca240a8d80b98e7823c7b.tar.gz
ez: Fix preflight checks without series tags
get_info() needs the base branch name as fallback when change-id cannot derive tag names, but preflight checks didn't pass it. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
-rw-r--r--src/b4/ez.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/b4/ez.py b/src/b4/ez.py
index 8bc1302..e1a4d67 100644
--- a/src/b4/ez.py
+++ b/src/b4/ez.py
@@ -1862,7 +1862,7 @@ def cmd_send(cmdargs: argparse.Namespace) -> None:
if not cmdargs.resend:
logger.debug('Running pre-flight checks')
- sinfo = get_info()
+ sinfo = get_info(usebranch=mybranch)
pfchecks = {'needs-editing': True,
'needs-checking': True,
'needs-checking-deps': True,
@@ -2409,7 +2409,7 @@ def show_info(param: str) -> None:
sys.exit(1)
-def get_info(usebranch: Optional[str] = None) -> Dict[str, str]:
+def get_info(usebranch: str) -> Dict[str, str]:
is_prep_branch(mustbe=True, usebranch=usebranch)
info = dict()
info['branch'] = usebranch