function getCommitDate() {
    const deferred = q.defer();

    exec('git show -s --format=%ci HEAD', function(error, stdout) {
      buildConfig.date = stdout && stdout.toString().trim();
      deferred.resolve(buildConfig.date);
    });

    return deferred.promise;
  }
function getCommitDate() {
    const deferred = q.defer();

    exec('git show -s --format=%ci HEAD', function(error, stdout) {
      buildConfig.date = stdout && stdout.toString().trim();
      deferred.resolve(buildConfig.date);
    });

    return deferred.promise;
  }
function getCommitDate ( ) { const deferred = q . defer ( ) ; exec ( 'git show -s --format=%ci HEAD' , function ( error , stdout ) { buildConfig . date = stdout && stdout . toString ( ) . trim ( ) ; deferred . resolve ( buildConfig . date ) ; } ) ; return deferred . promise ; }
Get the commit date for the most recent commit on origin/master
@returns {*}
Get the commit date for the most recent commit on origin / master
Get commit date