diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-08-26 21:46:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-26 23:49:50 +0200 |
commit | 675df192c5fad6a2b35ea43d4017b01e275eddef (patch) | |
tree | 56548d8a7a173364639fd73ade9ffb9d808694fc /transport-helper.c | |
parent | Tenth batch (diff) | |
download | git-675df192c5fad6a2b35ea43d4017b01e275eddef.tar.xz git-675df192c5fad6a2b35ea43d4017b01e275eddef.zip |
transport-helper: do not run git-remote-ext etc. in dashed form
Running it as "git remote-ext" and letting "git" dispatch to
"remote-ext" would just be fine and is more idiomatic.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | transport-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transport-helper.c b/transport-helper.c index defafbf4c1..c52c99d829 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -128,10 +128,10 @@ static struct child_process *get_helper(struct transport *transport) helper->in = -1; helper->out = -1; helper->err = 0; - strvec_pushf(&helper->args, "git-remote-%s", data->name); + strvec_pushf(&helper->args, "remote-%s", data->name); strvec_push(&helper->args, transport->remote->name); strvec_push(&helper->args, remove_ext_force(transport->url)); - helper->git_cmd = 0; + helper->git_cmd = 1; helper->silent_exec_failure = 1; if (have_git_dir()) |