jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404259 )
Change subject: Add a shebang line to new hooks ...................................................................... Add a shebang line to new hooks https://stackoverflow.com/questions/5697210/ Change-Id: If7f88966f1fd2894e4c641fd3fe360aa4c782577 --- M commit_message_validator/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/commit_message_validator/__init__.py b/commit_message_validator/__init__.py index 242f7f2..c143f65 100644 --- a/commit_message_validator/__init__.py +++ b/commit_message_validator/__init__.py @@ -163,7 +163,7 @@ return 0 # Doesn't exist, we need to create a hook and make it +x with open(path, 'w') as f: - f.write(cmd + '\n') + f.write('#!/bin/sh\n' + cmd + '\n') subprocess.check_call(['chmod', '+x', path]) return 0 -- To view, visit https://gerrit.wikimedia.org/r/404259 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If7f88966f1fd2894e4c641fd3fe360aa4c782577 Gerrit-PatchSet: 3 Gerrit-Project: integration/commit-message-validator Gerrit-Branch: master Gerrit-Owner: Dalba <dalba.w...@gmail.com> Gerrit-Reviewer: Dalba <dalba.w...@gmail.com> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Legoktm <lego...@member.fsf.org> Gerrit-Reviewer: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits