Skip to content

Commit 14df5ef

Browse files
committed
cc_maintainers: fix the .mailmap open
Turns out we're not in the tree... Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9930ec3 commit 14df5ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/patch/cc_maintainers/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import email.utils
88
import subprocess
99
import tempfile
10+
import os
1011
import re
1112
""" Test if relevant maintainers were CCed """
1213

@@ -82,7 +83,7 @@ def cc_maintainers(tree, thing, result_dir) -> Tuple[int, str]:
8283

8384
# Last resort, sift thru aliases
8485
if len(missing):
85-
with open('.mailmap', 'r') as f:
86+
with open(os.path.join(tree.path, '.mailmap'), 'r') as f:
8687
mmap_lines = f.readlines()
8788
mmap_lines += local_map
8889

0 commit comments

Comments
 (0)