Skip to content

Commit

Permalink
Add --force-interactive to request password if it is not know. Fixes #15
Browse files Browse the repository at this point in the history
.
  • Loading branch information
stephenharris committed Jan 23, 2015
1 parent 3b5c880 commit 4f981ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/wp_deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module.exports = function(grunt) {

//Commit to trunk
grunt.log.writeln( 'Committing to trunk');
var cmd = exec( 'cd '+svnpath+'/trunk\n svn commit --username="'+svnuser+'" -m "'+commitmsg+'"',{}, function(error, stdout, stderr) {
var cmd = exec( 'cd '+svnpath+'/trunk\n svn commit --force-interactive --username="'+svnuser+'" -m "'+commitmsg+'"',{}, function(error, stdout, stderr) {

if (error !== null) {
grunt.fail.warn( 'Failed to commit to trunk: ' + error );
Expand All @@ -166,7 +166,7 @@ module.exports = function(grunt) {
}
//Commit tag
grunt.log.writeln( 'Committing tag');
var cmd = exec( 'cd '+svnpath+'/tags/'+new_version+'\n svn commit --username="'+svnuser+'" -m "'+commitmsg+'"', {}, function( error, stdout, stderr) {
var cmd = exec( 'cd '+svnpath+'/tags/'+new_version+'\n svn commit --force-interactive --username="'+svnuser+'" -m "'+commitmsg+'"', {}, function( error, stdout, stderr) {
if (error !== null) {
grunt.fail.warn( 'Failed to comit tag: ' + error );
}
Expand All @@ -178,7 +178,7 @@ module.exports = function(grunt) {
cmd = "cd "+svnpath+"/assets; pwd;";
cmd += "svn status | grep -v '^.[ \t]*\\..*' | grep '^?' | awk '{print $2}' | xargs svn add;"; //Add new files
cmd += "svn status | grep -v '^.[ \t]*\\..*' | grep '^!' | awk '{print $2}' | xargs svn delete;"; //Remove missing files
cmd += 'cd '+svnpath+'/assets\n svn commit --username="'+svnuser+'" -m "'+commitmsg+'"';
cmd += 'cd '+svnpath+'/assets\n svn commit --force-interactive --username="'+svnuser+'" -m "'+commitmsg+'"';
var cmd = exec( cmd,{}, function(error, stdout, stderr) {
if (error !== null) {
grunt.fail.warn( 'Failed to commit to assets: ' + error );
Expand Down

0 comments on commit 4f981ea

Please sign in to comment.