Skip to content

Commit

Permalink
feat(release): add git shallow clone to MO repo
Browse files Browse the repository at this point in the history
Change command to "git clone --depth 1 <url>" to force git to only get the
last commit.
  • Loading branch information
XavierBoubert committed Oct 23, 2014
1 parent 58e6978 commit 876bfb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ module.exports = function release(config, callback) {
config.WEBSITE_PATH = WORK_PATH + '/' + config.WEBSITE_PATH;
config.THEMACHINE_PATH = config.MEMORYOVERFLOW_PATH + '/' + config.THEMACHINE_PATH;

console.log('\ngit clone ' + config.MEMORYOVERFLOW_REPO + ' ' + config.MEMORYOVERFLOW_PATH + '...');
console.log('\ngit clone --depth 1 ' + config.MEMORYOVERFLOW_REPO + ' ' + config.MEMORYOVERFLOW_PATH + '...');

cmd.exec('git clone ' + config.MEMORYOVERFLOW_REPO + ' ' + config.MEMORYOVERFLOW_PATH, function(error) {
cmd.exec('git clone --depth 1 ' + config.MEMORYOVERFLOW_REPO + ' ' + config.MEMORYOVERFLOW_PATH, function(error) {
if(error) {
return _error(error, callback);
}
Expand Down

0 comments on commit 876bfb7

Please sign in to comment.