match/lib/match/storage/git_storage.rb in fastlane-2.219.0 vs match/lib/match/storage/git_storage.rb in fastlane-2.220.0

- old
+ new

@@ -138,12 +138,13 @@ def human_readable_description "Git Repo [#{self.git_url}]" end def delete_files(files_to_delete: [], custom_message: nil) - # No specific list given, e.g. this happens on `fastlane match nuke` - # We just want to run `git add -A` to commit everything - git_push(commands: ["git add -A"], commit_message: custom_message) + if files_to_delete.count > 0 + commands = files_to_delete.map { |filename| "git rm #{filename.shellescape}" } + git_push(commands: commands, commit_message: custom_message) + end end def upload_files(files_to_upload: [], custom_message: nil) commands = files_to_upload.map do |current_file| "git add #{current_file.shellescape}"