This commit is contained in:
Petr Korolev 2014-11-05 17:56:02 +02:00
parent 519f7f627d
commit 72500cfe71

View File

@ -56,10 +56,7 @@ class ChangelogGenerator
log = '' log = ''
if @options[:last] if @options[:last]
prev_tag = self.all_tags[1] log += self.generate_log_between_tags(self.all_tags[0], self.all_tags[1])
last_tag = self.all_tags[0]
log += self.generate_log_between_tags(prev_tag, last_tag)
elsif @options[:tag1] && @options[:tag2] elsif @options[:tag1] && @options[:tag2]
tag1 = @options[:tag1] tag1 = @options[:tag1]
@ -93,7 +90,7 @@ class ChangelogGenerator
end end
def generate_log_for_all_tags def generate_log_for_all_tags
log = self.generate_log_between_tags(self.all_tags[0], self.all_tags[1])
end end
def is_megred(number) def is_megred(number)