Skip to content

Commit

Permalink
Merge pull request #35 from man-group/walk-git-parent-dirs
Browse files Browse the repository at this point in the history
Search parent dirs when creating git repo object
  • Loading branch information
jonbannister authored Jan 19, 2021
2 parents c4ac798 + db8ad61 commit d2ef297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooker/utils/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _get_output_path_hex(notebooker_disable_git, py_template_dir) -> str:
if py_template_dir and not notebooker_disable_git:
latest_sha = None
try:
git_repo = git.repo.Repo(py_template_dir)
git_repo = git.repo.Repo(py_template_dir, search_parent_directories=True)
if _git_has_changes(git_repo):
logger.info("Pulling latest notebook templates from git.")
_git_pull_latest(git_repo)
Expand Down

0 comments on commit d2ef297

Please sign in to comment.