mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
Check git_push matches without specifying a branch
This commit is contained in:
parent
4d89b3499e
commit
612c393ec4
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user