Skip to content

Commit f343388

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 40ffda9 commit f343388

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
@@ -119,10 +119,10 @@ static struct child_process *get_helper(struct transport *transport)
119119
helper->in = -1;
120120
helper->out = -1;
121121
helper->err = 0;
122-
argv_array_pushf(&helper->args, "git-remote-%s", data->name);
122+
argv_array_pushf(&helper->args, "remote-%s", data->name);
123123
argv_array_push(&helper->args, transport->remote->name);
124124
argv_array_push(&helper->args, remove_ext_force(transport->url));
125-
helper->git_cmd = 0;
125+
helper->git_cmd = 1;
126126
helper->silent_exec_failure = 1;
127127

128128
if (have_git_dir())

0 commit comments

Comments
 (0)