Skip to content
Snippets Groups Projects
Commit 7d5aa90d authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'update_release_since_workhorse_uses_different_tags' into 'master'

GitLab Workhorse now has v in the tags.

Caused by gitlab-org/gitlab-ce#12684 being done.

See merge request !669
parents bce33f25 e52bd4fa
No related branches found
No related tags found
1 merge request!669GitLab Workhorse now has v in the tags.
Loading
Loading
@@ -11,25 +11,12 @@ module Gitlab
end
 
def print
case @filename
when "VERSION"
version == "master" ? version : "v#{version}"
when "GITLAB_SHELL_VERSION"
version == "master" ? version : "v#{version}"
when "GITLAB_WORKHORSE_VERSION"
version
else
nil
end
end
def version
if @read_version.include?('.pre')
if @read_version.include?('.pre') || @read_version == "master"
"master"
elsif @read_version.empty?
nil
else
@read_version
"v#{@read_version}"
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment