1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-19 00:58:56 +00:00

Fix line length

This commit is contained in:
David 2018-01-03 22:21:18 +00:00
parent f2ed84002c
commit 9777bf8833

View File

@ -14,7 +14,8 @@ def match(command):
@eager @eager
def get_new_command(command): def get_new_command(command):
branch_name = re.findall( branch_name = re.findall(
r"fatal: A branch named '(.+)' already exists.", command.output)[0].replace("'", r"\'") r"fatal: A branch named '(.+)' already exists.", command.output)[0]
branch_name = branch_name.replace("'", r"\'")
new_command_templates = [['git branch -d {0}', 'git branch {0}'], new_command_templates = [['git branch -d {0}', 'git branch {0}'],
['git branch -d {0}', 'git checkout -b {0}'], ['git branch -d {0}', 'git checkout -b {0}'],
['git branch -D {0}', 'git branch {0}'], ['git branch -D {0}', 'git branch {0}'],