Skip to content

Commit d363bf0

Browse files
committed
Fix issue when traversing directories
The missing '/' separator after the base `/contents` uri caused empty results.
1 parent c48f326 commit d363bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File/GitHub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void addFiles(JArray array, string relativeFrom)
144144
}
145145
getFiles = path =>
146146
{
147-
if (Process.TryExecute("gh", "api " + apiUrl + path + apiQuery, out var data) &&
147+
if (Process.TryExecute("gh", "api " + apiUrl + "/" + path + apiQuery, out var data) &&
148148
JsonConvert.DeserializeObject<JToken>(data) is JArray array)
149149
{
150150
addFiles(array, relativeFrom);

0 commit comments

Comments
 (0)