lib/match/options.rb in match-0.1.2 vs lib/match/options.rb in match-0.2.0
- old
+ new
@@ -44,20 +44,20 @@
description: "Only fetch existing certificates and profiles, don't generate new ones",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :team_id,
short_option: "-b",
- env_name: "MATCH_TEAM_ID",
+ env_name: "FASTLANE_TEAM_ID",
description: "The ID of your team if you're in multiple teams",
optional: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
verify_block: proc do |value|
ENV["FASTLANE_TEAM_ID"] = value
end),
FastlaneCore::ConfigItem.new(key: :team_name,
short_option: "-l",
- env_name: "MATCH_TEAM_NAME",
+ env_name: "FASTLANE_TEAM_NAME",
description: "The name of your team if you're in multiple teams",
optional: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name),
verify_block: proc do |value|
ENV["FASTLANE_TEAM_NAME"] = value
@@ -73,14 +73,23 @@
FastlaneCore::ConfigItem.new(key: :force,
env_name: "MATCH_FORCE",
description: "Renew the provisioning profiles every time you run match",
is_string: false,
default_value: false),
+ FastlaneCore::ConfigItem.new(key: :shallow_clone,
+ env_name: "MATCH_SHALLOW_CLONE",
+ description: "Make a shallow clone of the repository (truncate the history to 1 revision)",
+ is_string: false,
+ default_value: true),
FastlaneCore::ConfigItem.new(key: :workspace,
description: nil,
verify_block: proc do |value|
unless Helper.test?
- raise "Specify the `git_url` instead of the `path`".red unless value.start_with?("/var/folders")
+ if value.start_with?("/var/folders") or value.include?("tmp/") or value.include?("temp/")
+ # that's fine
+ else
+ raise "Specify the `git_url` instead of the `path`".red
+ end
end
end,
optional: true)
]
end