lib/r10k/git/repository.rb in r10k-1.2.1 vs lib/r10k/git/repository.rb in r10k-1.2.2
- old
+ new
@@ -82,15 +82,22 @@
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