Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix path in getTree
Alexis Sellier committed 4 years ago
commit 08c154c06b5dfddb98336f99627899c04c6366dc
parent c1ae4099286b63b28f23d18c2835412596770522
1 file changed +3 -0
modified src/project.ts
@@ -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);
}