Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamWFLee committed Oct 3, 2024
1 parent fea5e50 commit a16341f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions lib/epi_deploy/git_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions spec/lib/epi_deploy/git_wrapper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a16341f

Please sign in to comment.