Commit 16210877 by Steven King Jr Committed by Edward Thomson

Unescape repo before constructing ssh request

parent 8a2cdbd3
......@@ -89,15 +89,19 @@ done:
return -1;
}
repo = gitno_unescape(git__strdup(repo));
len = strlen(cmd) + 1 /* Space */ + 1 /* Quote */ + strlen(repo) + 1 /* Quote */ + 1;
git_buf_grow(request, len);
git_buf_printf(request, "%s '%s'", cmd, repo);
git_buf_putc(request, '\0');
git__free(repo);
if (git_buf_oom(request))
return -1;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment