1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-31 15:12:20 +00:00

Merge pull request #559 from josephfrazier/git-push-explicit-upstream

Fix suggestions for `git push -u origin`
This commit is contained in:
Vladimir Iakovlev
2016-10-02 17:21:53 +02:00
committed by GitHub
2 changed files with 21 additions and 1 deletions

View File

@@ -23,5 +23,9 @@ 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 origin', stderr=stderr))\
== "git push --set-upstream origin master"
assert get_new_command(Command('git push --set-upstream origin', stderr=stderr))\
== "git push --set-upstream origin master"
assert get_new_command(Command('git push --quiet', stderr=stderr))\
== "git push --set-upstream origin master --quiet"