Skip to content

Commit

Permalink
Merge c35a61d into 01a5ba9
Browse files Browse the repository at this point in the history
  • Loading branch information
ik1ne committed Jul 22, 2019
2 parents 01a5ba9 + c35a61d commit cda1ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thefuck/rules/git_checkout.py
Expand Up @@ -8,7 +8,7 @@

@git_support
def match(command):
return ('did not match any file(s) known to git.' in command.output
return ('did not match any file(s) known to git' in command.output
and "Did you forget to 'git add'?" not in command.output)


Expand All @@ -29,7 +29,7 @@ def get_branches():
def get_new_command(command):
missing_file = re.findall(
r"error: pathspec '([^']*)' "
r"did not match any file\(s\) known to git.", command.output)[0]
r"did not match any file\(s\) known to git", command.output)[0]
closest_branch = utils.get_closest(missing_file, get_branches(),
fallback_to_first=False)
if closest_branch:
Expand Down

0 comments on commit cda1ec3

Please sign in to comment.