Skip to content

Commit

Permalink
fix(git_changelog_generate): pass tag if it exists to gitReadLog
Browse files Browse the repository at this point in the history
Previously if a tag was found the script would try to find commits
between undefined..HEAD. By passing the tag, it now finds tags between
tag..HEAD.

Closes rafinskipg#5.
  • Loading branch information
colegleason committed Jan 16, 2014
1 parent e725d8f commit 7c80192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/git_changelog_generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ var generate = function(params) {

if(typeof(tag) !== 'undefined'){
console.log('Reading git log since', tag);
fn = function(){ return readGitLog(GIT_LOG_CMD);};
fn = function(){ return readGitLog(GIT_LOG_CMD, tag);};
}else{
console.log('Reading git log since the beggining');
fn = function(){ return readGitLog(GIT_NOTAG_LOG_CMD);};
Expand Down

0 comments on commit 7c80192

Please sign in to comment.