mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	git_push: Make option handling more robust (#751)
See https://github.com/nvbn/thefuck/issues/740#issuecomment-354466567
This commit is contained in:
		
				
					committed by
					
						 Joseph Frazier
						Joseph Frazier
					
				
			
			
				
	
			
			
			
						parent
						
							83cf97dc26
						
					
				
				
					commit
					57fb6e079a
				
			| @@ -29,7 +29,13 @@ def test_get_new_command(output): | ||||
|         == "git push --set-upstream origin master" | ||||
|     assert get_new_command(Command('git push -u origin', output))\ | ||||
|         == "git push --set-upstream origin master" | ||||
|     assert get_new_command(Command('git push origin', output))\ | ||||
|         == "git push --set-upstream origin master" | ||||
|     assert get_new_command(Command('git push --set-upstream origin', output))\ | ||||
|         == "git push --set-upstream origin master" | ||||
|     assert get_new_command(Command('git push --quiet', output))\ | ||||
|         == "git push --set-upstream origin master --quiet" | ||||
|     assert get_new_command(Command('git push --quiet origin', output))\ | ||||
|         == "git push --set-upstream origin master --quiet" | ||||
|     assert get_new_command(Command('git -c test=test push --quiet origin', output))\ | ||||
|         == "git -c test=test push --set-upstream origin master --quiet" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user