Skip to content

Comments

Autodetect protocol from git address#25

Merged
CatTail merged 1 commit intogit-hooks:masterfrom
rvasilevsf:master
Apr 4, 2019
Merged

Autodetect protocol from git address#25
CatTail merged 1 commit intogit-hooks:masterfrom
rvasilevsf:master

Conversation

@rumenvasilev
Copy link

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

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

Copy link
Member

@CatTail CatTail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for add this feature

@CatTail CatTail merged commit bbb19f8 into git-hooks:master Apr 4, 2019
@CatTail
Copy link
Member

CatTail commented Apr 4, 2019

v1.2.0 is the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants