File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ def gitlab_rails_ref(prepend_version: true)
90
90
Gitlab ::Version . new ( 'gitlab-rails' ) . print ( prepend_version )
91
91
end
92
92
93
- def previous_version
94
- # Get the second latest git tag
95
- previous_tag = Info ::Git . latest_stable_tag ( level : 2 )
96
- previous_tag . tr ( "+" , "-" )
97
- end
98
-
99
93
def gitlab_rails_project_path
100
94
if Gitlab ::Util . get_env ( 'CI_SERVER_HOST' ) == 'dev.gitlab.org'
101
95
package == "gitlab-ee" ? 'gitlab/gitlab-ee' : 'gitlab/gitlabhq'
Original file line number Diff line number Diff line change 107
107
end
108
108
end
109
109
110
- describe '.previous_version' do
111
- it 'detects previous version correctly' do
112
- allow ( Build ::Info ::Git ) . to receive ( :` ) . and_call_original
113
- allow ( Build ::Info ::Git ) . to receive ( :` ) . with ( "git describe --exact-match 2>/dev/null" ) . and_return ( '10.4.0+ee.0' )
114
- allow ( Build ::Info ::Git ) . to receive ( :` ) . with ( /git -c versionsort/ ) . and_return ( "10.4.0+ee.0\n 10.3.5+ee.0" )
115
-
116
- expect ( described_class . previous_version ) . to eq ( "10.3.5-ee.0" )
117
- end
118
- end
119
-
120
110
describe '.gitlab_rails repo' do
121
111
describe 'with alternative sources channel selected' do
122
112
before do
You can’t perform that action at this time.
0 commit comments