diff --git a/lib/epi_deploy/git_wrapper.rb b/lib/epi_deploy/git_wrapper.rb index d786478..511ba97 100644 --- a/lib/epi_deploy/git_wrapper.rb +++ b/lib/epi_deploy/git_wrapper.rb @@ -82,10 +82,6 @@ def current_branch git.current_branch end - def tags_for_object(object) - `git tag --points-at #{object}`.split() - end - def most_recent_commit git.log(1).first end diff --git a/spec/lib/epi_deploy/git_wrapper_spec.rb b/spec/lib/epi_deploy/git_wrapper_spec.rb index 6bd52f6..153d53d 100644 --- a/spec/lib/epi_deploy/git_wrapper_spec.rb +++ b/spec/lib/epi_deploy/git_wrapper_spec.rb @@ -121,15 +121,4 @@ end end end - - describe '#tags_for_object' do - before do - allow(subject).to receive(:`).with('git tag --points-at HEAD').and_return("test1\ntest2\n") - end - - it 'returns a list of tags that point at a given object' do - expect(subject.tags_for_object('HEAD')).to match_array ['test1', 'test2'] - end - end - end