git_net_url_parse: don't git_buf_decode_percent for path

parent 1748f92c
...@@ -94,7 +94,7 @@ int git_net_url_parse(git_net_url *url, const char *given) ...@@ -94,7 +94,7 @@ int git_net_url_parse(git_net_url *url, const char *given)
if (has_path) { if (has_path) {
const char *url_path = given + u.field_data[UF_PATH].off; const char *url_path = given + u.field_data[UF_PATH].off;
size_t url_path_len = u.field_data[UF_PATH].len; size_t url_path_len = u.field_data[UF_PATH].len;
git_buf_decode_percent(&path, url_path, url_path_len); git_buf_put(&path, url_path, url_path_len);
} else { } else {
git_buf_puts(&path, "/"); git_buf_puts(&path, "/");
} }
......
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