Skip to content

Commit 5afae52

Browse files
committed
Fix #1378. Need to always have a slug to replace on.
1 parent d7cfe1a commit 5afae52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/builds/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def get_vcs_slug(self):
215215
slug = self.project.vcs_repo().fallback_branch
216216
elif self.slug == STABLE:
217217
return self.identifier
218+
else:
219+
slug = self.slug
218220
# https://github.com/rtfd/readthedocs.org/issues/561
219221
# version identifiers with / characters in branch name need to un-slugify
220222
# the branch name for remote links to work

0 commit comments

Comments
 (0)