We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4987e0f + 28b479b commit cf84943Copy full SHA for cf84943
git-filter-repo
@@ -1622,7 +1622,10 @@ class FilteringOptions(object):
1622
if suffix.startswith('rename'):
1623
mod_type = 'rename'
1624
match_type = option_string[len('--path-rename-'):] or 'match'
1625
- values = values.split(b':', 1)
+ values = values.split(b':')
1626
+ if len(values) != 2:
1627
+ raise SystemExit(_("Error: --path-rename expects one colon in its"
1628
+ " argument: <old_name:new_name>."))
1629
if values[0] and values[1] and not (
1630
values[0].endswith(b'/') == values[1].endswith(b'/')):
1631
raise SystemExit(_("Error: With --path-rename, if OLD_NAME and "
0 commit comments