From 6d447930a255e3754ec2c3d416ca226c6a36f855 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Fri, 22 Jan 2016 16:50:00 -0800 Subject: [PATCH] Use Node's execSync to run git commands in deploy process instead of Gitty --- gulp/deploy.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulp/deploy.js b/gulp/deploy.js index 562b5c740..ec3d78f79 100644 --- a/gulp/deploy.js +++ b/gulp/deploy.js @@ -11,6 +11,7 @@ var git = require('gitty')(process.cwd() + '/'); var octophant = require('octophant'); var sequence = require('run-sequence'); var inquirer = require('inquirer'); +var exec = require('child_process').execSync; var VERSIONED_FILES = [ 'bower.json', @@ -98,9 +99,9 @@ gulp.task('deploy:settings', function(cb) { // Writes a commit with the changes to the version numbers gulp.task('deploy:commit', function(cb) { - git.commitSync('Bump to version ' + NEXT_VERSION, ['-a']); - git.tagSync('v' + NEXT_VERSION); - git.push('origin', 'develop', '--tags', cb); + exec('git commit -am "Bump to version "' + NEXT_VERSION); + exec('git tag v' + NEXT_VERSION); + exec('git push origin develop --follow-tags'); cb(); }); -- 2.47.2