Skip to content

Commit

Permalink
Merge pull request #132 from inian/master
Browse files Browse the repository at this point in the history
Don't update refs for files which aren't renamed (issue #131)
  • Loading branch information
Joshua Bellamy-Henn committed Mar 3, 2016
2 parents 049d4a9 + 6d048ea commit cb0b0e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion revisioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ var Revisioner = (function () {
var referencePath = reference.path.substr(0, reference.path.length - (reference.file.revFilenameOriginal.length + reference.file.revFilenameExtOriginal.length));
var pathReferenceReplace = referencePath + reference.file.revFilename;


if (this.options.transformPath) {
// Transform path using client supplied transformPath callback,
pathReferenceReplace = this.options.transformPath.call(this, pathReferenceReplace, reference.path, reference.file, file);
Expand Down Expand Up @@ -433,6 +433,11 @@ var Revisioner = (function () {
return false;
}
}

if (!this.shouldFileBeRenamed(file)) {
return false;
}

return true;

};
Expand Down

0 comments on commit cb0b0e3

Please sign in to comment.