Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.extension
Commits
2b9ed567
Commit
2b9ed567
authored
Sep 22, 2016
by
André Anjos
💬
Browse files
Fix version -> master replacement
parent
cb7c728b
Pipeline
#3887
passed with stages
in 60 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/extension/scripts/new_version.py
View file @
2b9ed567
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment