Skip to content

Commit c3808eb

Browse files
author
Kevin Paulisse
committed
Add possibility to override script path for git checkout
1 parent f04bcb1 commit c3808eb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • lib/octocatalog-diff/catalog-util

lib/octocatalog-diff/catalog-util/git.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def self.check_out_git_archive(options = {})
2424
path = options.fetch(:path)
2525
dir = options.fetch(:basedir)
2626
logger = options.fetch(:logger)
27+
override_script_path = options.fetch(:override_script_path, nil)
2728

2829
# Validate parameters
2930
if dir.nil? || !File.directory?(dir)
@@ -36,7 +37,8 @@ def self.check_out_git_archive(options = {})
3637
# Create and execute checkout script
3738
sr_opts = {
3839
logger: logger,
39-
default_script: 'git-extract/git-extract.sh'
40+
default_script: 'git-extract/git-extract.sh',
41+
override_script_path: override_script_path
4042
}
4143
script = OctocatalogDiff::Util::ScriptRunner.new(sr_opts)
4244

0 commit comments

Comments
 (0)