Skip to content

Commit f6bc3d0

Browse files
committed
fix(Git): Fix clearServer
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 8b104c5 commit f6bc3d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/adapters/Git.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ export default class GitAdapter extends CachingAdapter {
276276
}
277277
}
278278

279-
async clearAllLocks(): Promise<void> {
279+
async clearAllLocks(fs:FS = null): Promise<void> {
280+
fs = fs || this.fs
280281
const tags = await git.listTags({ fs: this.fs, dir: this.dir })
281282
const lockTags = tags.filter(tag => tag.startsWith('floccus-lock-'))
282283
for (const tag of lockTags) {
@@ -378,7 +379,7 @@ export default class GitAdapter extends CachingAdapter {
378379
depth: 10,
379380
onAuth: () => this.onAuth()
380381
})
381-
await this.clearAllLocks()
382+
await this.clearAllLocks(fs)
382383
}
383384
}
384385

0 commit comments

Comments
 (0)