mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Allow generic_shell to act while testing git_push_pull
				
					
				
			Fix failing tests on shells that do not use && operator
This commit is contained in:
		| @@ -1,5 +1,4 @@ | |||||||
| from thefuck import utils | from thefuck import utils, shells | ||||||
| from thefuck.shells import and_ |  | ||||||
| from thefuck.utils import replace_argument | from thefuck.utils import replace_argument | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -13,5 +12,5 @@ def match(command, settings): | |||||||
|  |  | ||||||
| @utils.git_support | @utils.git_support | ||||||
| def get_new_command(command, settings): | def get_new_command(command, settings): | ||||||
|     return and_(replace_argument(command.script, 'push', 'pull'), |     return shells.and_(replace_argument(command.script, 'push', 'pull'), | ||||||
|                        command.script) |                        command.script) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user