lib/r10k/git/repository.rb in r10k-1.2.4 vs lib/r10k/git/repository.rb in r10k-1.3.0rc1
- old
+ new
@@ -82,22 +82,15 @@
def remotes
output = git ['remote', '-v'], :git_dir => git_dir
ret = {}
output.stdout.each_line do |line|
- next if line.match(/\(push\)/)
+ next if line.match /\(push\)/
name, url, _ = line.split(/\s+/)
ret[name] = url
end
ret
- end
-
- def tags
- entries = []
- output = git(['tag', '-l'], :git_dir => @git_dir).stdout
- output.each_line { |line| entries << line.chomp }
- entries
end
private
# Fetch objects and refs from the given git remote