Commit 66cb1a7f5e4316136ae88f7521bc15e2c07f79c5

Stefan Sperling 2020-09-24T13:45:36

strip trailing slashes from repository path in got_fetch_parse_uri()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/fetch.c b/lib/fetch.c
index bb30d57..d82e0a4 100644
--- a/lib/fetch.c
+++ b/lib/fetch.c
@@ -312,6 +312,7 @@ got_fetch_parse_uri(char **proto, char **host, char **port,
 		err = got_error_from_errno("strdup");
 		goto done;
 	}
+	got_path_strip_trailing_slashes(*server_path);
 
 	p = strrchr(p, '/');
 	if (!p || strlen(p) <= 1) {