Skip to content

Commit 743117e

Browse files
committed
Strip well-known version component origin/ from remote version, fixes readthedocs#3203
1 parent c8a72f5 commit 743117e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readthedocs/doc_builder/backends/sphinx.py

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ def get_config_params(self):
7272
)
7373
remote_version = self.version.commit_name
7474

75+
# Replace "/origin" because upstream VCS does not recognize the local
76+
# repo remote name
77+
# Refs: https://github.com/rtfd/readthedocs.org/issues/3203
78+
if remote_version:
79+
remote_version = remote_version.replace("origin/", "")
80+
7581
github_user, github_repo = version_utils.get_github_username_repo(
7682
url=self.project.repo)
7783
github_version_is_editable = (self.version.type == 'branch')

0 commit comments

Comments
 (0)