Skip to content
Snippets Groups Projects
Commit 58e56d62 authored by Gareth Hughes's avatar Gareth Hughes
Browse files

add replace statement to url to remove git+ for mybinder launching

parent b8840297
No related branches found
No related tags found
1 merge request!213Draft: add replace statement to url to remove git+ for mybinder launching
Pipeline #37136 passed
...@@ -147,7 +147,7 @@ class Deploy(): ...@@ -147,7 +147,7 @@ class Deploy():
BINDER_API_ROOT = "https://mybinder.org/v2" BINDER_API_ROOT = "https://mybinder.org/v2"
BINDER_REPO_TYPE = "git" BINDER_REPO_TYPE = "git"
BINDER_REPO_URL = quote_url(workflow.url) BINDER_REPO_URL = quote_url(workflow.url).replace("git+","")
BINDER_REPO_REF = workflow.ref BINDER_REPO_REF = workflow.ref
BINDER_REPO_FILE = quote_url(workflow.filepath) if workflow.filepath else None BINDER_REPO_FILE = quote_url(workflow.filepath) if workflow.filepath else None
...@@ -161,7 +161,7 @@ class Deploy(): ...@@ -161,7 +161,7 @@ class Deploy():
# it's just ignored as we redirect to the facility only. # it's just ignored as we redirect to the facility only.
BINDER_API_ROOT = facility.url + "v2" BINDER_API_ROOT = facility.url + "v2"
BINDER_REPO_TYPE = "git" BINDER_REPO_TYPE = "git"
BINDER_REPO_URL = quote_url(workflow.url) BINDER_REPO_URL = quote_url(workflow.url).replace("git+","")
BINDER_REPO_REF = workflow.ref BINDER_REPO_REF = workflow.ref
BINDER_REPO_FILE = quote_url(workflow.filepath) if workflow.filepath else None BINDER_REPO_FILE = quote_url(workflow.filepath) if workflow.filepath else None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment