8
0

git-push.js 520 B

12345678910111213141516171819202122
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. const git = require( '../utils/git' );
  7. const PassThrough = require( 'stream' ).PassThrough;
  8. /**
  9. * Pushes changes of current branch in repository to default origin
  10. *
  11. * @param {String} workdir
  12. * @returns {Object} stream
  13. */
  14. module.exports = ( workdir ) => {
  15. git.push( workdir );
  16. // Return dummy stream to inform gulp about finishing task
  17. return new PassThrough();
  18. };