Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
35eec0f3
Commit
35eec0f3
authored
Sep 16, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return EE version check to origin
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
447b4a49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/upgrader.rb
lib/gitlab/upgrader.rb
+1
-1
No files found.
lib/gitlab/upgrader.rb
View file @
35eec0f3
...
@@ -43,7 +43,7 @@ module Gitlab
...
@@ -43,7 +43,7 @@ module Gitlab
end
end
def
latest_version_raw
def
latest_version_raw
remote_tags
,
_
=
Gitlab
::
Popen
.
popen
(
%W(git ls-remote --tags
https://gitlab.com/gitlab-org/gitlab-ce.git
)
)
remote_tags
,
_
=
Gitlab
::
Popen
.
popen
(
%W(git ls-remote --tags
origin
)
)
git_tags
=
remote_tags
.
split
(
"
\n
"
).
grep
(
/tags\/v
#{
current_version
.
major
}
/
)
git_tags
=
remote_tags
.
split
(
"
\n
"
).
grep
(
/tags\/v
#{
current_version
.
major
}
/
)
git_tags
=
git_tags
.
select
{
|
version
|
version
=~
/v\d\.\d\.\d-ee\Z/
}
git_tags
=
git_tags
.
select
{
|
version
|
version
=~
/v\d\.\d\.\d-ee\Z/
}
last_tag
=
git_tags
.
last
.
match
(
/v\d\.\d\.\d-ee/
).
to_s
last_tag
=
git_tags
.
last
.
match
(
/v\d\.\d\.\d-ee/
).
to_s
...
...
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