Skip to content

Commit

Permalink
Strip well-known version component origin/ from remote version, fixes r…
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaoming committed Dec 7, 2017
1 parent c8a72f5 commit 743117e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readthedocs/doc_builder/backends/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def get_config_params(self):
)
remote_version = self.version.commit_name

# Replace "/origin" because upstream VCS does not recognize the local
# repo remote name
# Refs: https://github.com/rtfd/readthedocs.org/issues/3203
if remote_version:
remote_version = remote_version.replace("origin/", "")

github_user, github_repo = version_utils.get_github_username_repo(
url=self.project.repo)
github_version_is_editable = (self.version.type == 'branch')
Expand Down

0 comments on commit 743117e

Please sign in to comment.