1
0
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:
Matthieu Guilbert
2018-07-10 06:48:08 +08:00
committed by Vladimir Iakovlev
parent a6bb41e802
commit 534782414f
2 changed files with 6 additions and 2 deletions

View File

@@ -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