mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-08 21:20:45 +08:00
Fix path in getTree
This commit is contained in:
@@ -71,6 +71,9 @@ export async function getTree(
|
||||
path: string,
|
||||
config: Config
|
||||
): Promise<any | null> {
|
||||
if (path === "/") {
|
||||
path = "";
|
||||
}
|
||||
return api.get(`projects/${urn}/tree/${commit}/${path}`, config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user