Commit 2b9ed567 authored by André Anjos's avatar André Anjos 💬
Browse files

Fix version -> master replacement

parent cb7c728b
Pipeline #3887 passed with stages
in 60 minutes and 20 seconds
......@@ -89,7 +89,7 @@ def _update_readme(version = None):
with open(".README.rst", 'w') as write:
for line in read:
if BRANCH_RE.search(line) is not None and "gitlab" in line:
replacement = "/v%s" % version if version is not None else "master"
replacement = "/v%s" % version if version is not None else "/master"
line = BRANCH_RE.sub(replacement, line)
write.write(line)
os.rename(".README.rst", "README.rst")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment