Skip to content

Commit eb6e90f

Browse files
committed
#224: spec/support/bin/git: replaced 'cp -Tr' callby wrench.copyDirSyncRecursive
1 parent 729ee2a commit eb6e90f

File tree

1 file changed

+3
-2
lines changed
  • spec/support/bin

1 file changed

+3
-2
lines changed

spec/support/bin/git

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ var command = _.first(args);
1313

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

2021
var REAL_GIT = process.env._METEORITE_REAL_GIT;

0 commit comments

Comments
 (0)