aboutsummaryrefslogtreecommitdiff
path: root/b4/ez.py
diff options
context:
space:
mode:
Diffstat (limited to 'b4/ez.py')
-rw-r--r--b4/ez.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/b4/ez.py b/b4/ez.py
index c0380d4..3aa3fc0 100644
--- a/b4/ez.py
+++ b/b4/ez.py
@@ -678,7 +678,9 @@ def update_trailers(cmdargs: argparse.Namespace) -> None:
def get_addresses_from_cmd(cmdargs: List[str], msgbytes: bytes) -> List[Tuple[str, str]]:
- ecode, out, err = b4._run_command(cmdargs, stdin=msgbytes) # noqa
+ # Run this command from git toplevel
+ topdir = b4.git_get_toplevel()
+ ecode, out, err = b4._run_command(cmdargs, stdin=msgbytes, rundir=topdir) # noqa
if ecode > 0:
logger.critical('CRITICAL: Running %s failed:', ' '.join(cmdargs))
logger.critical(err.decode())