mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-08 21:04:03 +01:00
git_push: Don't add duplicate remote/branch name (#745)
This fixes https://github.com/nvbn/thefuck/issues/740
This commit is contained in:
@@ -23,6 +23,8 @@ def test_match(output):
|
||||
def test_get_new_command(output):
|
||||
assert get_new_command(Command('git push', output))\
|
||||
== "git push --set-upstream origin master"
|
||||
assert get_new_command(Command('git push master', output))\
|
||||
== "git push --set-upstream origin master"
|
||||
assert get_new_command(Command('git push -u', output))\
|
||||
== "git push --set-upstream origin master"
|
||||
assert get_new_command(Command('git push -u origin', output))\
|
||||
|
Reference in New Issue
Block a user