Skip to content

Commit

Permalink
Update conf.py (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jun 4, 2021
1 parent b59ab65 commit 1050f58
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
# The try catch is need because of the subversion tool when it creates the master.
try:
repo = git.Repo(curr_path)
current_branch = repo.active_branch.name
head = repo.head
if (head.is_detached):
current_branch = str(head.commit)
else:
current_branch = repo.active_branch.name
except git.exc.InvalidGitRepositoryError:
current_branch = ''

Expand Down Expand Up @@ -123,9 +127,9 @@
#"wiki_title": "Tesseract",
"display_github": True,
"github_user": "ros-industrial-consortium",
"github_repo": "tesseract",
"github_repo": "tesseract_docs",
"github_version": current_branch,
"conf_py_path": "gh_pages/",
"conf_py_path": "",
"source_suffix": source_suffix,
"css_files": ['_static/override.css'],
}
Expand Down

0 comments on commit 1050f58

Please sign in to comment.