Skip to content

the git-hooks can not work on windows(mingw) #10

@snowyu

Description

@snowyu
[GIT-HOOKS ERROR] Cannot find module '....
node_modulesgit-hookslib/git-hooks'

the path delimiter of the generated hook files is error:

.git/hooks/post-commit:

#!/usr/bin/env node

try {
    require('..\..\node_modules\git-hooks\lib/git-hooks').run(__filename, process.argv[2], function (code) {
        process.exit(code);
    });
} catch (e) {
    console.error('[GIT-HOOKS ERROR] ' + e.message);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions