Skip to content

Commit b31adf1

Browse files
committed
prepend slash to commits_url
1 parent ba1679a commit b31adf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api_remote.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open Common
55

66
module Github : Api.Github = struct
77
let commits_url ~(repo : Github_t.repository) ~sha =
8-
String.substr_replace_first ~pattern:"{/sha}" ~with_:sha repo.commits_url
8+
String.substr_replace_first ~pattern:"{/sha}" ~with_:("/" ^ sha) repo.commits_url
99

1010
let contents_url ~(repo : Github_t.repository) ~path =
1111
String.substr_replace_first ~pattern:"{+path}" ~with_:path repo.contents_url

0 commit comments

Comments
 (0)