fastlane/lib/fastlane/helper/git_helper.rb in fastlane-2.222.0 vs fastlane/lib/fastlane/helper/git_helper.rb in fastlane-2.223.0

- old
+ new

@@ -7,30 +7,32 @@ # Removing because tests break on CircleCI Helper.test? && branch == "CIRCLE_BRANCH" end.freeze end - def self.git_log_between(pretty_format, from, to, merge_commit_filtering, date_format = nil, ancestry_path) + def self.git_log_between(pretty_format, from, to, merge_commit_filtering, date_format = nil, ancestry_path, app_path) command = %w(git log) command << "--pretty=#{pretty_format}" command << "--date=#{date_format}" if date_format command << '--ancestry-path' if ancestry_path command << "#{from}...#{to}" command << git_log_merge_commit_filtering_option(merge_commit_filtering) + command << app_path if app_path # "*command" syntax expands "command" array into variable arguments, which # will then be individually shell-escaped by Actions.sh. Actions.sh(*command.compact, log: false).chomp rescue nil end - def self.git_log_last_commits(pretty_format, commit_count, merge_commit_filtering, date_format = nil, ancestry_path) + def self.git_log_last_commits(pretty_format, commit_count, merge_commit_filtering, date_format = nil, ancestry_path, app_path) command = %w(git log) command << "--pretty=#{pretty_format}" command << "--date=#{date_format}" if date_format command << '--ancestry-path' if ancestry_path command << '-n' << commit_count.to_s command << git_log_merge_commit_filtering_option(merge_commit_filtering) + command << app_path if app_path Actions.sh(*command.compact, log: false).chomp rescue nil end