Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit c57516b

Browse files
committed
fix(cloneLibraries): clean repo before checkout
1 parent 3ab0dbd commit c57516b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cloneLibraries.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export default async function (storageUri: Uri) {
4040

4141
await repo.fetch('origin', 'main', 1);
4242
await repo.getBranch('origin/main');
43+
await repo.clean(
44+
repo.state.workingTreeChanges.map((change) => change.uri.fsPath),
45+
);
4346
await repo.checkout('main');
4447
await repo.pull();
4548
} catch (e: unknown) {

0 commit comments

Comments
 (0)