mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Replace use of '&&' by shells.and_
This commit is contained in:
		| @@ -1,3 +1,6 @@ | ||||
| from thefuck import shells | ||||
|  | ||||
|  | ||||
| def match(command, settings): | ||||
|     return ('git' in command.script | ||||
|             and 'pull' in command.script | ||||
| @@ -9,4 +12,4 @@ def get_new_command(command, settings): | ||||
|     branch = line.split(' ')[-1] | ||||
|     set_upstream = line.replace('<remote>', 'origin')\ | ||||
|                        .replace('<branch>', branch) | ||||
|     return u'{} && {}'.format(set_upstream, command.script) | ||||
|     return shells.and_(set_upstream, command.script) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user