Skip to content

Commit

Permalink
Revert "trace2: add child classification for transport processes"
Browse files Browse the repository at this point in the history
This reverts commit d83778f.
  • Loading branch information
jeffhostetler committed Dec 21, 2018
1 parent eebf43a commit 2dc5fab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,6 @@ struct child_process *git_connect(int fd[2], const char *url,
conn = NULL;
} else if (protocol == PROTO_GIT) {
conn = git_connect_git(fd, hostandport, path, prog, version, flags);
conn->trace2_child_class = "transport/git";
} else {
struct strbuf cmd = STRBUF_INIT;
const char *const *var;
Expand Down Expand Up @@ -1298,11 +1297,9 @@ struct child_process *git_connect(int fd[2], const char *url,
strbuf_release(&cmd);
return NULL;
}
conn->trace2_child_class = "transport/ssh";
fill_ssh_args(conn, ssh_host, port, version, flags);
} else {
transport_check_allowed("file");
conn->trace2_child_class = "transport/file";
if (version > 0) {
argv_array_pushf(&conn->env_array, GIT_PROTOCOL_ENVIRONMENT "=version=%d",
version);
Expand Down
2 changes: 0 additions & 2 deletions transport-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ static struct child_process *get_helper(struct transport *transport)
argv_array_pushf(&helper->env_array, "%s=%s",
GIT_DIR_ENVIRONMENT, get_git_dir());

helper->trace2_child_class = helper->args.argv[0]; /* "remote-<name>" */

code = start_command(helper);
if (code < 0 && errno == ENOENT)
die(_("unable to find remote helper for '%s'"), data->name);
Expand Down

0 comments on commit 2dc5fab

Please sign in to comment.