Skip to content

Commit a78f0f5

Browse files
committed
fix: Create GitHub siblings if enabled
1 parent 4d41cf4 commit a78f0f5

File tree

1 file changed

+3
-2
lines changed
  • services/datalad/datalad_service/common

1 file changed

+3
-2
lines changed

services/datalad/datalad_service/common/github.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
def create_github_repo(dataset_path, dataset_id):
1313
"""Setup a github sibling / remote."""
14+
if not DATALAD_GITHUB_EXPORTS_ENABLED:
15+
return
1416
try:
15-
if not DATALAD_GITHUB_EXPORTS_ENABLED:
16-
return create_sibling_github(dataset_path, dataset_id)
17+
return create_sibling_github(dataset_path, dataset_id)
1718
except KeyError:
1819
raise Exception(
1920
'DATALAD_GITHUB_TOKEN and DATALAD_GITHUB_ORG must be defined to create remote repos'

0 commit comments

Comments
 (0)