Merge branch 'master' of git://github.com/Asday/thefuck into Asday-master

This commit is contained in:
Vladimir Iakovlev
2017-03-22 13:57:18 +01:00
3 changed files with 43 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import re
fix = 'git commit -m "Initial commit." && {command}'
refspec_does_not_match = re.compile(r'src refspec \w+ does not match any\.')
def match(command):
if refspec_does_not_match.search(command.stderr):
return True
return False
def get_new_command(command):
return fix.format(command=command.script)