Skip to content

Commit ba2885d

Browse files
committed
git_net_url_parse: don't git_buf_decode_percent for path
1 parent 1748f92 commit ba2885d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int git_net_url_parse(git_net_url *url, const char *given)
9494
if (has_path) {
9595
const char *url_path = given + u.field_data[UF_PATH].off;
9696
size_t url_path_len = u.field_data[UF_PATH].len;
97-
git_buf_decode_percent(&path, url_path, url_path_len);
97+
git_buf_put(&path, url_path, url_path_len);
9898
} else {
9999
git_buf_puts(&path, "/");
100100
}

0 commit comments

Comments
 (0)