Run git without shell

This commit is contained in:
Nobuyoshi Nakada 2025-04-24 10:37:59 +09:00
parent 9255db4bc0
commit 21c7131df8
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-06-17 04:18:05 +00:00

View File

@ -69,7 +69,7 @@ class Git
def git(*args)
cmd = ['git', *args].shelljoin
puts "+ #{cmd}"
unless with_clean_env { system(cmd) }
unless with_clean_env { system('git', *args) }
abort "Failed to run: #{cmd}"
end
end