Skip to content

Commit f55b66b

Browse files
bbondy3rd-Eden
authored andcommitted
Fix pre-commit template (#80)
Without this, it actually looks for a file with quotes around it on macOS and probably other platforms too. The path is already escaped because it is part of an args array.
1 parent bf393ad commit f55b66b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Hook.prototype.initialize = function initialize() {
198198
// execute.
199199
//
200200
if (this.config.template) {
201-
this.exec(this.git, ['config', 'commit.template', '"'+ this.config.template +'"']);
201+
this.exec(this.git, ['config', 'commit.template', this.config.template]);
202202
}
203203

204204
if (!this.config.run) return this.log(Hook.log.run, 0);

0 commit comments

Comments
 (0)