match/lib/match/storage/git_storage.rb in fastlane-2.109.1 vs match/lib/match/storage/git_storage.rb in fastlane-2.110.0
- old
+ new
@@ -53,11 +53,11 @@
self.platform = platform if platform
end
def download
# Check if we already have a functional working_directory
- return self.working_directory if @working_directory
+ return if @working_directory
# No existing working directory, creating a new one now
self.working_directory = Dir.mktmpdir
command = "git clone '#{self.git_url}' '#{self.working_directory}'"
@@ -108,17 +108,10 @@
end
git_push(commands: commands, commit_message: custom_message)
end
- def clear_changes
- return unless @working_directory
-
- FileUtils.rm_rf(self.working_directory)
- self.working_directory = nil
- end
-
# Generate the commit message based on the user's parameters
def generate_commit_message
[
"[fastlane]",
"Updated",
@@ -183,11 +176,9 @@
print_all: FastlaneCore::Globals.verbose?,
print_command: FastlaneCore::Globals.verbose?)
end
end
end
-
- private # rubocop:disable Lint/UselessAccessModifier
def git_push(commands: [], commit_message: nil)
commit_message ||= generate_commit_message
commands << "git commit -m #{commit_message.shellescape}"
commands << "GIT_TERMINAL_PROMPT=0 git push origin #{self.branch.shellescape}"