]> source.dussan.org Git - jquery.git/commitdiff
Release: fix quotes for releasing on Windows
authorTimmy Willison <4timmywil@gmail.com>
Thu, 22 Sep 2016 21:55:01 +0000 (17:55 -0400)
committerTimmy Willison <4timmywil@gmail.com>
Thu, 22 Sep 2016 22:18:25 +0000 (18:18 -0400)
build/release/dist.js

index da9ad2281477562c9146bb95ba4d91883e38166e..e0237febecd3bc72335574a0ee3f17b32eeed369 100644 (file)
@@ -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();
        }