Fixes #507 - Removes old credit lines in log so that there are no duplicates

This commit is contained in:
Enether 2017-06-03 18:22:23 +03:00
parent a26bcc326b
commit 2cc15f7be0

View File

@ -21,7 +21,10 @@ module GitHubChangelogGenerator
log += File.read(options[:base]) if File.file?(options[:base]) log += File.read(options[:base]) if File.file?(options[:base])
log += "\n\n\\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*" credit_line = "\n\n\\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*"
log.gsub!(credit_line, '') # Remove old credit lines
log += credit_line
@log = log @log = log
end end