We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b104c5 commit f6bc3d0Copy full SHA for f6bc3d0
src/lib/adapters/Git.ts
@@ -276,7 +276,8 @@ export default class GitAdapter extends CachingAdapter {
276
}
277
278
279
- async clearAllLocks(): Promise<void> {
+ async clearAllLocks(fs:FS = null): Promise<void> {
280
+ fs = fs || this.fs
281
const tags = await git.listTags({ fs: this.fs, dir: this.dir })
282
const lockTags = tags.filter(tag => tag.startsWith('floccus-lock-'))
283
for (const tag of lockTags) {
@@ -378,7 +379,7 @@ export default class GitAdapter extends CachingAdapter {
378
379
depth: 10,
380
onAuth: () => this.onAuth()
381
})
- await this.clearAllLocks()
382
+ await this.clearAllLocks(fs)
383
384
385
0 commit comments