Skip to content

Commit

Permalink
Write full path to commit.template config
Browse files Browse the repository at this point in the history
This is done in order to support committing from git submodules.

Fixes rkotze#33
  • Loading branch information
cjlarose committed Jan 10, 2019
1 parent cd74de0 commit 0a24d70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/git-message/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fs = require('fs');
const os = require('os');
const path = require('path');

const { config, revParse } = require('../git-commands');

Expand Down Expand Up @@ -75,7 +76,7 @@ function commitTemplatePath() {
return (
process.env.GITMOB_MESSAGE_PATH ||
config.get('commit.template') ||
'.git/.gitmessage'
path.resolve(gitMessagePath())
);
}

Expand Down

0 comments on commit 0a24d70

Please sign in to comment.