Skip to content

Commit

Permalink
Ensure repo has branch information
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Feb 19, 2025
1 parent 6cb645b commit 5aff9cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rsp_jupyter_extensions/handlers/tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,13 @@ def _build_hierarchy(


def _find_repo() -> str | None:
return os.getenv(
"TUTORIAL_NOTEBOOKS_URL", "https://github.com/lsst/tutorial-notebooks"
repo = os.getenv(
"TUTORIAL_NOTEBOOKS_URL",
"https://github.com/lsst/tutorial-notebooks@main",
)
if "@" not in repo:
repo += "@main"
return repo


def _get_tag() -> str:
Expand Down

0 comments on commit 5aff9cb

Please sign in to comment.