Skip to content

Commit

Permalink
Remove "cc" from instect menu filtering
Browse files Browse the repository at this point in the history
Now that commands can be passed directly to git-send-email there are
more possibilities than just adding a "cc" line. We remove "cc" from the
find line so all the stuff that git-send-email is adding gets shown when
inspect_menu is called.

Signed-off-by: Joel Granados <[email protected]>
  • Loading branch information
Joelgranados authored and stefanha committed Jun 21, 2023
1 parent 5cbb9f7 commit 75c0805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-publish
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def inspect_menu(tmpdir, to_list, cc_list, patches, suppress_cc, in_reply_to,
# Print relevant 'Adding cc' lines from the git-send-email --dry-run output
while index < len(output) and len(output[index]):
line = output[index].replace('\r', '')
if line.find('Adding cc') != -1:
if line.find('Adding ') != -1:
print(' ' + line)
index += 1
index += 1
Expand Down

0 comments on commit 75c0805

Please sign in to comment.