Skip to content

Commit

Permalink
Updating to match fast-glob options
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Apr 29, 2018
1 parent 9660000 commit 3cebb92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"bluebird": "^3.5.1",
"dir-compare": "^1.4.0",
"fs-extra": "^5.0.0",
"globby": "^7.1.1",
"globby": "^8.0.1",
"is-there": "^4.4.3",
"shortid": "^2.2.8",
"tempy": "^0.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Hg.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function cloneMultipleAndMerge(from, to, pythonPath) {
await combinedRepo.update({ clean: true, revision: 'default' });

const files = await Globby(['*', '!.hg'], {
nodir: false,
onlyFiles: false,
dot: true,
cwd: combinedRepo.path,
});
Expand Down
4 changes: 2 additions & 2 deletions src/HgRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class HgRepo {
await Command.run(cloneCmd);

// Remove .hgtags from each folder
const files = await Globby(['**/.hgtags'], { nodir: false, dot: true, cwd: path });
const files = await Globby(['**/.hgtags'], { onlyFiles: false, dot: true, cwd: path });

if (files.length) {
await Promise.all(files.map(hgpath => Fs.remove(Path.resolve(path, hgpath))));
Expand All @@ -108,7 +108,7 @@ class HgRepo {

// Rename .hgignore to .gitignore, and remove the line syntax:*
const hgIgnoreFiles = await Globby(['**/.hgignore'], {
nodir: false,
onlyFiles: false,
dot: true,
cwd: path,
});
Expand Down

0 comments on commit 3cebb92

Please sign in to comment.