Skip to content

Commit

Permalink
Fixed wrong date in commits, add missing param "force" for Tag creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanaye committed Feb 1, 2017
1 parent e0fb073 commit 56b073f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/tasks/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = function (grunt) {
var repository;
var index;
var oid;
var author = Git.Signature.create(gitUser, gitEmail, Date.now(), 0);
var author = Git.Signature.now(gitUser, gitEmail);
return Git.Repository.open('.')
.then(function (repo) {
repository = repo;
Expand All @@ -157,7 +157,7 @@ module.exports = function (grunt) {
}).then(function (parent) {
return repository.createCommit('HEAD', author, author, '[ci skip] Build Version ' + version, oid, [parent]);
}).then(function (id) {
return Git.Tag.create(repository, version, id, author, 'Release v'+version);
return Git.Tag.create(repository, version, id, author, 'Release v'+version, 0); // 0 = don't force tag creation
}).then(function () {
return repository.getRemote('origin');
})
Expand Down

0 comments on commit 56b073f

Please sign in to comment.