mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	#618: Refine git_push_without_commits rule
				
					
				
			This commit is contained in:
		| @@ -1,14 +1,13 @@ | |||||||
| import re | import re | ||||||
|  | from thefuck.specific.git import git_support | ||||||
|  |  | ||||||
| fix = 'git commit -m "Initial commit." && {command}' | fix = u'git commit -m "Initial commit." && {command}' | ||||||
| refspec_does_not_match = re.compile(r'src refspec \w+ does not match any\.') | refspec_does_not_match = re.compile(r'src refspec \w+ does not match any\.') | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @git_support | ||||||
| def match(command): | def match(command): | ||||||
|     if refspec_does_not_match.search(command.stderr): |     return bool(refspec_does_not_match.search(command.stderr)) | ||||||
|         return True |  | ||||||
|  |  | ||||||
|     return False |  | ||||||
|  |  | ||||||
|  |  | ||||||
| def get_new_command(command): | def get_new_command(command): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user