Dalba has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/404069 )
Change subject: Use forward slash as the path separator for git hook on Windows
......................................................................
Use forward slash as the path separator for git hook on Windows
Bug: T184845
Change-Id: Iedcc4ab028f0f3d6a0d5e4f19151ba28cf536954
---
M commit_message_validator/__init__.py
1 file changed, 1 insertion(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/integration/commit-message-validator
refs/changes/69/404069/1
diff --git a/commit_message_validator/__init__.py
b/commit_message_validator/__init__.py
index cf15256..6518c01 100644
--- a/commit_message_validator/__init__.py
+++ b/commit_message_validator/__init__.py
@@ -280,6 +280,7 @@
def install():
"""Install post-commit git hook."""
cmd = sys.executable + ' ' + __file__
+ cmd = cmd.replace('\\', '/') # T184845
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: newchange
Gerrit-Change-Id: Iedcc4ab028f0f3d6a0d5e4f19151ba28cf536954
Gerrit-PatchSet: 1
Gerrit-Project: integration/commit-message-validator
Gerrit-Branch: master
Gerrit-Owner: Dalba <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits