Commit cf9c8834 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in spec/lib/gitlab/git/repository_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 34ea8039
...@@ -1777,22 +1777,6 @@ describe Gitlab::Git::Repository, seed_helper: true do ...@@ -1777,22 +1777,6 @@ describe Gitlab::Git::Repository, seed_helper: true do
end end
end end
<<<<<<< HEAD
describe '#fetch' do
let(:git_path) { Gitlab.config.git.bin_path }
let(:remote_name) { 'my_remote' }
subject { repository.fetch(remote_name) }
it 'fetches the remote and returns true if the command was successful' do
expect(repository).to receive(:popen)
.with(%W(#{git_path} fetch #{remote_name}), repository.path)
.and_return(['', 0])
expect(subject).to be(true)
end
end
describe '#delete_all_refs_except' do describe '#delete_all_refs_except' do
let(:repository) do let(:repository) do
Gitlab::Git::Repository.new('default', TEST_MUTABLE_REPO_PATH, '') Gitlab::Git::Repository.new('default', TEST_MUTABLE_REPO_PATH, '')
...@@ -1819,8 +1803,6 @@ describe Gitlab::Git::Repository, seed_helper: true do ...@@ -1819,8 +1803,6 @@ describe Gitlab::Git::Repository, seed_helper: true do
end end
end end
=======
>>>>>>> origin/master
def create_remote_branch(repository, remote_name, branch_name, source_branch_name) def create_remote_branch(repository, remote_name, branch_name, source_branch_name)
source_branch = repository.branches.find { |branch| branch.name == source_branch_name } source_branch = repository.branches.find { |branch| branch.name == source_branch_name }
rugged = repository.rugged rugged = repository.rugged
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment