mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-08 21:04:03 +01:00
git_push: Handle command containing force argument (#818)
This commit is contained in:
committed by
Vladimir Iakovlev
parent
a6bb41e802
commit
534782414f
@@ -66,6 +66,10 @@ def test_not_match(output, script, branch_name):
|
||||
('git -c test=test push --quiet origin', 'master',
|
||||
'git -c test=test push --set-upstream origin master --quiet'),
|
||||
('git push', "test's",
|
||||
"git push --set-upstream origin test\\'s")])
|
||||
"git push --set-upstream origin test\\'s"),
|
||||
('git push --force', 'master',
|
||||
'git push --set-upstream origin master --force'),
|
||||
('git push --force-with-lease', 'master',
|
||||
'git push --set-upstream origin master --force-with-lease')])
|
||||
def test_get_new_command(output, script, branch_name, new_command):
|
||||
assert get_new_command(Command(script, output)) == new_command
|
||||
|
Reference in New Issue
Block a user