Skip to content

Commit

Permalink
#224: spec/support/bin/git: replaced 'cp -Tr' callby wrench.copyDirSy…
Browse files Browse the repository at this point in the history
…ncRecursive
  • Loading branch information
yeputons committed Feb 3, 2014
1 parent 729ee2a commit eb6e90f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/support/bin/git
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ var command = _.first(args);

var copyRepo = function(from, to) {
wrench.mkdirSyncRecursive(path.dirname(to));
// -T is required because 'to' directory may be already created
spawn('cp', ['-Tr', from, to]);
wrench.copyDirSyncRecursive(from, to, {
forceDelete: true // Directory 'to' may already exists
});
};

var REAL_GIT = process.env._METEORITE_REAL_GIT;
Expand Down

0 comments on commit eb6e90f

Please sign in to comment.