summaryrefslogtreecommitdiff
path: root/b4/mbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'b4/mbox.py')
-rw-r--r--b4/mbox.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 200cf1c..459fb9a 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -143,12 +143,7 @@ def mbox_to_am(mboxfile, cmdargs):
logger.critical(' Msg From: %s <%s>', fname, femail)
logger.critical('NOTE: Rerun with -S to apply them anyway')
- topdir = None
- # Are we in a git tree and if so, what is our toplevel?
- gitargs = ['rev-parse', '--show-toplevel']
- lines = b4.git_get_command_lines(None, gitargs)
- if len(lines) == 1:
- topdir = lines[0]
+ topdir = b4.git_get_toplevel()
if cmdargs.threeway:
if not topdir: