Skip to content

Commit 84a521a

Browse files
committed
transport-helper: prefer Git's builtins over dashed form
This helps with minimal installations such as MinGit that refuse to waste .zip real estate by shipping identical copies of builtins (.zip files do not support hard links). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent de21232 commit 84a521a

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
@@ -120,10 +120,10 @@ static struct child_process *get_helper(struct transport *transport)
120120
helper->in = -1;
121121
helper->out = -1;
122122
helper->err = 0;
123-
argv_array_pushf(&helper->args, "git-remote-%s", data->name);
123+
argv_array_pushf(&helper->args, "remote-%s", data->name);
124124
argv_array_push(&helper->args, transport->remote->name);
125125
argv_array_push(&helper->args, remove_ext_force(transport->url));
126-
helper->git_cmd = 0;
126+
helper->git_cmd = 1;
127127
helper->silent_exec_failure = 1;
128128

129129
if (have_git_dir())

0 commit comments

Comments
 (0)