Skip to content

Commit 7e3e6d7

Browse files
jawshooahsds
authored andcommitted
Explicitly use 'sh' to execute gerrit-change-id script
1 parent 51d680e commit 7e3e6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/overcommit/hook/commit_msg/gerrit_change_id.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GerritChangeId < Base
1111
SCRIPT_LOCATION = Overcommit::Utils.script_path('gerrit-change-id')
1212

1313
def run
14-
result = execute([SCRIPT_LOCATION, commit_message_file])
14+
result = execute(['sh', SCRIPT_LOCATION, commit_message_file])
1515
return :pass if result.success?
1616

1717
[:fail, result.stdout]

0 commit comments

Comments
 (0)