1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Check git_push matches without specifying a branch

This commit is contained in:
Luke Childs 2016-08-19 22:19:09 +01:00
parent 4d89b3499e
commit 612c393ec4

View File

@ -14,6 +14,7 @@ To push the current branch and set the remote as upstream, use
def test_match(stderr):
assert match(Command('git push', stderr=stderr))
assert match(Command('git push master', stderr=stderr))
assert not match(Command('git push master'))
assert not match(Command('ls', stderr=stderr))