1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-24 14:12:34 +01:00

Merge branch 'git-push-u' of https://github.com/josephfrazier/thefuck into josephfrazier-git-push-u

This commit is contained in:
Vladimir Iakovlev
2016-10-07 10:40:02 +02:00
2 changed files with 7 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ def test_match(stderr):
def test_get_new_command(stderr):
assert get_new_command(Command('git push', stderr=stderr))\
== "git push --set-upstream origin master"
assert get_new_command(Command('git push -u', stderr=stderr))\
== "git push --set-upstream origin master"
assert get_new_command(Command('git push -u origin', stderr=stderr))\
== "git push --set-upstream origin master"
assert get_new_command(Command('git push --set-upstream origin', stderr=stderr))\