jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/404069 )
Change subject: Use forward slash as the path separator for git hook command on
Windows
......................................................................
Use forward slash as the path separator for git hook command on Windows
Bug: T184845
Change-Id: Iedcc4ab028f0f3d6a0d5e4f19151ba28cf536954
---
M commit_message_validator/__init__.py
1 file changed, 2 insertions(+), 0 deletions(-)
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 cf15256..8166fee 100644
--- a/commit_message_validator/__init__.py
+++ b/commit_message_validator/__init__.py
@@ -280,6 +280,8 @@
def install():
"""Install post-commit git hook."""
cmd = sys.executable + ' ' + __file__
+ if os.name == 'nt': # T184845
+ cmd = cmd.replace('\\', '/')
print('Will install a git hook that runs: %s' % cmd)
git_dir = check_output(['git', 'rev-parse', '--git-dir']).strip()
path = os.path.join(git_dir, 'hooks', 'post-commit')
--
To view, visit https://gerrit.wikimedia.org/r/404069
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iedcc4ab028f0f3d6a0d5e4f19151ba28cf536954
Gerrit-PatchSet: 3
Gerrit-Project: integration/commit-message-validator
Gerrit-Branch: master
Gerrit-Owner: Dalba <[email protected]>
Gerrit-Reviewer: Dalba <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits