git filter-branch: options not supported in --stdin mode

Viewed 255

I'm trying to rename some commit messages using git filter-branch --msg-filter in windows cmd like this:

git filter-branch --msg-filter "python my_editing_script.py" -- --first-parent --no-merges 37827a6c7a65f8e878e..my_branch_name

The my_editing_script.py reads old messages from stdin and outputs new ones to stdout.

But I get

fatal: options not supported in --stdin mode
Could not get the commits

What am I doing wrong?

0 Answers
Related