1
0
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:
Joseph Frazier
2017-12-27 07:54:52 -05:00
committed by GitHub
parent f966ecd4f5
commit 4ea02a3153
2 changed files with 6 additions and 0 deletions

View File

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