MCPcopy Index your code
hub / github.com/clns/node-commit-msg / isOtherHook

Function isOtherHook

lib/setup.js:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 var hookExists = fs.existsSync(hook);
84 var _isOtherHook;
85 function isOtherHook() {
86 if (typeof(_isOtherHook) == 'undefined') {
87 var content = fs.readFileSync(hook, { encoding: 'utf8' });
88 _isOtherHook = !/clns\/node-commit-msg/.test(content);
89 }
90 return _isOtherHook;
91 }
92
93 // Uninstall hook
94

Callers 1

setupHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected