diff options
author | Timmy Willison <4timmywil@gmail.com> | 2016-09-22 17:55:01 -0400 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2016-09-22 18:18:25 -0400 |
commit | 51c29dc1fecc675054762fb1f50a0cdd6b1f0df0 (patch) | |
tree | 507e25ab930eaadd8615474f4ccd409f95eb5775 | |
parent | cc16f1185493f94d20a9132621abc8106d614d58 (diff) | |
download | jquery-51c29dc1fecc675054762fb1f50a0cdd6b1f0df0.tar.gz jquery-51c29dc1fecc675054762fb1f50a0cdd6b1f0df0.zip |
Release: fix quotes for releasing on Windows
-rw-r--r-- | build/release/dist.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build/release/dist.js b/build/release/dist.js index da9ad2281..e0237febe 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -94,9 +94,10 @@ module.exports = function( Release, files, complete ) { fs.writeFileSync( Release.dir.dist + "/bower.json", generateBower() ); console.log( "Adding files to dist..." ); - Release.exec( "git add .", "Error adding files." ); + + Release.exec( "git add -A", "Error adding files." ); Release.exec( - "git commit -m 'Release " + Release.newVersion + "'", + "git commit -m \"Release " + Release.newVersion + "\"", "Error committing files." ); console.log(); @@ -104,7 +105,7 @@ module.exports = function( Release, files, complete ) { console.log( "Tagging release on dist..." ); Release.exec( "git tag " + Release.newVersion, "Error tagging " + Release.newVersion + " on dist repo." ); - Release.tagTime = Release.exec( "git log -1 --format='%ad'", + Release.tagTime = Release.exec( "git log -1 --format=\"%ad\"", "Error getting tag timestamp." ).trim(); } |