Skip to content

Commit 56b073f

Browse files
committed
Fixed wrong date in commits, add missing param "force" for Tag creation.
1 parent e0fb073 commit 56b073f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/tasks/publish.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ module.exports = function (grunt) {
135135
var repository;
136136
var index;
137137
var oid;
138-
var author = Git.Signature.create(gitUser, gitEmail, Date.now(), 0);
138+
var author = Git.Signature.now(gitUser, gitEmail);
139139
return Git.Repository.open('.')
140140
.then(function (repo) {
141141
repository = repo;
@@ -157,7 +157,7 @@ module.exports = function (grunt) {
157157
}).then(function (parent) {
158158
return repository.createCommit('HEAD', author, author, '[ci skip] Build Version ' + version, oid, [parent]);
159159
}).then(function (id) {
160-
return Git.Tag.create(repository, version, id, author, 'Release v'+version);
160+
return Git.Tag.create(repository, version, id, author, 'Release v'+version, 0); // 0 = don't force tag creation
161161
}).then(function () {
162162
return repository.getRemote('origin');
163163
})

0 commit comments

Comments
 (0)