Skip to content

Commit a2e31dc

Browse files
committed
Git: Log command when gitLog fails, improves debugging
Closes gh-51
1 parent fe0cd50 commit a2e31dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/git.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ module.exports = function( Release ) {
22

33
Release.define({
44
gitLog: function( format ) {
5-
var result = Release.exec({
6-
command: "git log " + Release.prevVersion + ".." + Release.newVersion + " " +
5+
var command = "git log " + Release.prevVersion + ".." + Release.newVersion + " " +
76
"--format='" + format + "'",
8-
silent: true
9-
}, "Error getting git log." );
7+
result = Release.exec({
8+
command: command,
9+
silent: true
10+
}, "Error getting git log, command was: " + command );
1011

1112
result = result.split( /\r?\n/ );
1213
if ( result[ result.length - 1 ] === "" ) {

0 commit comments

Comments
 (0)