Skip to content
This repository was archived by the owner on Mar 18, 2018. It is now read-only.

Commit f32b5aa

Browse files
committed
Merge pull request #25 from kaspars/master
use 24h format for releaseDirname instead of 12h
2 parents bfdc8ad + 5e215ec commit f32b5aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ You can manipulate the repository using git command, the API is describe in [gif
190190

191191
Attached during `deploy:update` and `rollback:init` task.
192192

193-
The current release dirname of the project, the format used is "yyyymmddhhMMss" (grunt.template.date format).
193+
The current release dirname of the project, the format used is "yyyymmddHHMMss" (grunt.template.date format).
194194

195195
#### shipit.releasesPath
196196

tasks/deploy/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function (grunt) {
3131
*/
3232

3333
function createReleasePath(cb) {
34-
grunt.shipit.releaseDirname = grunt.template.date('yyyymmddhhMMss');
34+
grunt.shipit.releaseDirname = grunt.template.date('yyyymmddHHMMss');
3535
grunt.shipit.releasesPath = path.join(grunt.shipit.config.deployTo, 'releases');
3636
grunt.shipit.releasePath = path.join(grunt.shipit.releasesPath, grunt.shipit.releaseDirname);
3737

test/unit/tasks/deploy/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('deploy:update task', function () {
3838
it('should create release path, and do a remote copy', function (done) {
3939
runTask('deploy:update', function (err) {
4040
if (err) return done(err);
41-
var dirName = grunt.template.date('yyyymmddhhMMss');
41+
var dirName = grunt.template.date('yyyymmddHHMMss');
4242
expect(shipit.releaseDirname).to.equal(dirName);
4343
expect(shipit.releasesPath).to.equal('/remote/deploy/releases');
4444
expect(shipit.releasePath).to.equal('/remote/deploy/releases/' + dirName);

0 commit comments

Comments
 (0)