diff --git a/src/index.ts b/src/index.ts index 88de44e..29e8e7f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,7 +61,10 @@ const gitPullerExtension: JupyterFrontEndPlugin = { let puller: GitPuller | null = null; - const basePath = PathExt.basename(repo); + const basePath = PathExt.join( + defaultFileBrowser.model.path, + PathExt.basename(repo) + ); const branch = urlParams.get('branch') || 'main'; const provider = urlParams.get('provider') || 'github'; let filePath = urlParams.get('urlpath');