Commit Diff


commit - 7c0b7f42f3ff191db04c3a8b01078649f1a70b6b
commit + 66cb1a7f5e4316136ae88f7521bc15e2c07f79c5
blob - bb30d5779ae63ad15f78b9792824daa68e1695e0
blob + d82e0a4d378d87beb89d865a329bda29918b1add
--- lib/fetch.c
+++ lib/fetch.c
@@ -312,6 +312,7 @@ got_fetch_parse_uri(char **proto, char **host, char **
 		err = got_error_from_errno("strdup");
 		goto done;
 	}
+	got_path_strip_trailing_slashes(*server_path);
 
 	p = strrchr(p, '/');
 	if (!p || strlen(p) <= 1) {