From 3e9845d39a0cbb4b62161b26331360c42c4d236a Mon Sep 17 00:00:00 2001 From: Juniper Tyree <50025784+juntyr@users.noreply.github.com> Date: Sun, 10 Nov 2024 10:23:16 +0100 Subject: [PATCH 1/2] Upload to current working directory --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 88de44e..5aa3db8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,7 +61,7 @@ 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'); From 8476a94dae0b8995786037d0cff3100717d21d02 Mon Sep 17 00:00:00 2001 From: Juniper Tyree <50025784+juntyr@users.noreply.github.com> Date: Sun, 10 Nov 2024 10:35:19 +0100 Subject: [PATCH 2/2] Fix prettier lints --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5aa3db8..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.join(defaultFileBrowser.model.path, 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');