Skip to content

Releases: rvasilevsf/git-hooks

Add support for git clone transport protocol

03 Apr 14:49
Compare
Choose a tag to compare

This release adds support for detecting the protocol from the githooks.json file. Previously it was assuming all connections are going over https. Now they can go over ssh as well.
Example structure:

{
    "pre-commit": {
        "ssh://git@my.git.repo:org/repo": [
            "script1"
        ],
        "https://my.git.repo/org/repo": [
            "script1"
        ],
        "my.git.repo/org/repo": [
            "script1"
        ]
    }
}