var gutil = require('gulp-util');
var exec = require('child_process').exec;
var escape = require('shell-escape');

module.exports = function (remote, branch, opt, cb) {
  if(!branch) branch = 'master';
  if(!remote) remote = 'origin';
  if(!opt) opt = {};
  if (!opt.cwd) {
    opt.cwd = process.cwd();
  }

  var cmd = "git pull " + escape([remote, branch])+' '+opt.args;
  return exec(cmd, {cwd: opt.cwd}, function(err, stdout, stderr){
    if(err) gutil.log(err);
    gutil.log(stdout, stderr);
    cb(err);
  });
};
@@ -253,17 +253,16 @@
 %7B%7D;%0A  if
- 
 (!opt.cw
@@ -267,14 +267,8 @@
 cwd)
- %7B%0A   
  opt
@@ -291,17 +291,44 @@
 wd();%0A  
-%7D
+if(!opt.args) opt.args = '';
 %0A%0A  var 
@@ -376,12 +376,15 @@
 h%5D)+
-' '+
+ %22 %22 + 
 opt.
@@ -522,14 +522,18 @@
     
+if(cb) 
 cb(
-err
 );%0A 

Update pull