We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d41cf4 commit a78f0f5Copy full SHA for a78f0f5
services/datalad/datalad_service/common/github.py
@@ -11,9 +11,10 @@
11
12
def create_github_repo(dataset_path, dataset_id):
13
"""Setup a github sibling / remote."""
14
+ if not DATALAD_GITHUB_EXPORTS_ENABLED:
15
+ return
16
try:
- if not DATALAD_GITHUB_EXPORTS_ENABLED:
- return create_sibling_github(dataset_path, dataset_id)
17
+ return create_sibling_github(dataset_path, dataset_id)
18
except KeyError:
19
raise Exception(
20
'DATALAD_GITHUB_TOKEN and DATALAD_GITHUB_ORG must be defined to create remote repos'
0 commit comments