mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
Preserve args for git_push
This commit is contained in:
parent
070bb2ff28
commit
4d89b3499e
@ -1,3 +1,4 @@
|
|||||||
|
from thefuck.utils import replace_argument
|
||||||
from thefuck.specific.git import git_support
|
from thefuck.specific.git import git_support
|
||||||
|
|
||||||
|
|
||||||
@ -9,4 +10,5 @@ def match(command):
|
|||||||
|
|
||||||
@git_support
|
@git_support
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
return command.stderr.split('\n')[-3].strip()
|
push_upstream = command.stderr.split('\n')[-3].strip().partition('git ')[2]
|
||||||
|
return replace_argument(command.script, 'push', push_upstream)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user