Skip to content

Commit 4987e0f

Browse files
committed
filter-repo: fix --use-mailmap
--use-mailmap was defined as `--mailmap .mailmap` except that it would set args.mailmap to ".mailmap" rather than b".mailmap" (in other words, it accidentally set it to a string rather than a bytestring). Since the --mailmap parameter is always passed as a bytestring, we ran into errors with calling unknown functions due to the type mismatch. Signed-off-by: Elijah Newren <[email protected]>
1 parent 407d15d commit 4987e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-filter-repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ EXAMPLES
18621862
"part of git history, historical versions of the file will "
18631863
"be ignored; only the current contents are consulted."))
18641864
people.add_argument('--use-mailmap', dest='mailmap',
1865-
action='store_const', const='.mailmap',
1865+
action='store_const', const=b'.mailmap',
18661866
help=_("Same as: '--mailmap .mailmap' "))
18671867

18681868
parents = parser.add_argument_group(title=_("Parent rewriting"))

0 commit comments

Comments
 (0)