Skip to content

Commit

Permalink
fix: use COMMIT_EDITMSG file name to edit commits
Browse files Browse the repository at this point in the history
This enables color highlighting in editors that support it.
  • Loading branch information
Alicia Lopez committed Nov 8, 2021
1 parent 5f40861 commit 9dae439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Session {
}

getMessagePath(rev) {
return path.join(this.pullDir, `${shortSha(rev)}-message`);
return path.join(this.pullDir, `${shortSha(rev)}.COMMIT_EDITMSG`);
}

updateSession(update) {
Expand Down

0 comments on commit 9dae439

Please sign in to comment.