Skip to content
Snippets Groups Projects

Persist source sha and target sha for merge pipelines

Merged Shinya Maeda requested to merge persist-source-sha-and-target-sha-for-pipelines into master
All threads resolved!
Compare and Show latest version
2 files
+ 3
27
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -176,10 +176,6 @@
let(:source_sha) { nil }
it 'returns the HEAD sha of the source branch' do
is_expected.to eq(merge_request.diff_head_sha)
end
context 'when source_sha is specified' do
let(:source_sha) { 'abc' }
@@ -187,14 +183,6 @@
is_expected.to eq('abc')
end
end
context 'when merge request does not exist' do
let(:merge_request) { nil }
it 'returns the blank sha' do
is_expected.to eq(Gitlab::Git::BLANK_SHA)
end
end
end
describe '#target_sha' do
@@ -212,10 +200,6 @@
let(:target_sha) { nil }
it 'returns the HEAD sha of the source branch' do
is_expected.to eq(merge_request.target_branch_sha)
end
context 'when target_sha is specified' do
let(:target_sha) { 'abc' }
@@ -223,14 +207,6 @@
is_expected.to eq('abc')
end
end
context 'when merge request does not exist' do
let(:merge_request) { nil }
it 'returns the blank sha' do
is_expected.to eq(Gitlab::Git::BLANK_SHA)
end
end
end
describe '#protected_ref?' do
Loading