summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hattendorf <ianh@axosoft.com>2019-07-24 18:05:28 -0700
committerIan Hattendorf <ianh@axosoft.com>2019-07-24 18:05:28 -0700
commitba2885da4e5c499850a5fe0dba824dc20550ba4b (patch)
treed62563a79b019bc089cb84dc4540c871c866aad8
parent1748f92c1a999a22ea179107bd024a8b62ce441e (diff)
downloadlibgit2-ba2885da4e5c499850a5fe0dba824dc20550ba4b.tar.gz
git_net_url_parse: don't git_buf_decode_percent for path
-rw-r--r--src/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index e35abbb94..a1dc408e0 100644
--- a/src/net.c
+++ b/src/net.c
@@ -94,7 +94,7 @@ int git_net_url_parse(git_net_url *url, const char *given)
if (has_path) {
const char *url_path = given + u.field_data[UF_PATH].off;
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 {
git_buf_puts(&path, "/");
}