Skip to content

Commit

Permalink
Merge pull request #40 from lsst-sqre/tickets/DM-29799
Browse files Browse the repository at this point in the history
[DM-29799] Allow configuration of repo url and branch
  • Loading branch information
cbanek authored Apr 22, 2021
2 parents be2f287 + 5e88e8f commit ee4ce22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mobu/notebookrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ async def run(self) -> None:
)

if not self._repo:
repo_url = self.options.get("repo_url", REPO_URL)
repo_branch = self.options.get("repo_branch", REPO_BRANCH)

self._repo = git.Repo.clone_from(
REPO_URL, self._repo_dir.name, branch=REPO_BRANCH
repo_url, self._repo_dir.name, branch=repo_branch
)

self._notebook_iterator = os.scandir(self._repo_dir.name)
Expand Down

0 comments on commit ee4ce22

Please sign in to comment.