We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1679a commit b31adf1Copy full SHA for b31adf1
lib/api_remote.ml
@@ -5,7 +5,7 @@ open Common
5
6
module Github : Api.Github = struct
7
let commits_url ~(repo : Github_t.repository) ~sha =
8
- String.substr_replace_first ~pattern:"{/sha}" ~with_:sha repo.commits_url
+ String.substr_replace_first ~pattern:"{/sha}" ~with_:("/" ^ sha) repo.commits_url
9
10
let contents_url ~(repo : Github_t.repository) ~path =
11
String.substr_replace_first ~pattern:"{+path}" ~with_:path repo.contents_url
0 commit comments