mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
Change: remove period from git checkout get_new_command.
This commit is contained in:
parent
fc705befc7
commit
c35a61dd69
@ -29,7 +29,7 @@ def get_branches():
|
|||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
missing_file = re.findall(
|
missing_file = re.findall(
|
||||||
r"error: pathspec '([^']*)' "
|
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(),
|
closest_branch = utils.get_closest(missing_file, get_branches(),
|
||||||
fallback_to_first=False)
|
fallback_to_first=False)
|
||||||
if closest_branch:
|
if closest_branch:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user