@matheusbsbs / matheus-bagliano / commits / 675df192c5
Fork 0

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>

Junio C Hamano committed Aug 26, 2020 at 12:46 UTC 675df192c5fad6a2b35ea43d4017b01e275eddef
1 file changed +2 -2
transport-helper.c
+2 -2
@@ -128,10 +128,10 @@ static struct child_process *get_helper(struct transport *transport)
128 helper->in = -1;
129 helper->out = -1;
130 helper->err = 0;
131 - strvec_pushf(&helper->args, "git-remote-%s", data->name);
131 + strvec_pushf(&helper->args, "remote-%s", data->name);
132 strvec_push(&helper->args, transport->remote->name);
133 strvec_push(&helper->args, remove_ext_force(transport->url));
134 - helper->git_cmd = 0;
134 + helper->git_cmd = 1;
135 helper->silent_exec_failure = 1;
136
137 if (have_git_dir())