Skip to content

Commit 675df19

Browse files
committed
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>
1 parent e9b77c8 commit 675df19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transport-helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ static struct child_process *get_helper(struct transport *transport)
128128
helper->in = -1;
129129
helper->out = -1;
130130
helper->err = 0;
131-
strvec_pushf(&helper->args, "git-remote-%s", data->name);
131+
strvec_pushf(&helper->args, "remote-%s", data->name);
132132
strvec_push(&helper->args, transport->remote->name);
133133
strvec_push(&helper->args, remove_ext_force(transport->url));
134-
helper->git_cmd = 0;
134+
helper->git_cmd = 1;
135135
helper->silent_exec_failure = 1;
136136

137137
if (have_git_dir())

0 commit comments

Comments
 (0)