mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Correctly update metadata when extracting zip
This commit is contained in:
parent
654fa6b455
commit
786cefaf4d
1 changed files with 8 additions and 0 deletions
|
|
@ -259,6 +259,14 @@ export default class SyncManager {
|
|||
await this.logger.info("Written file", {
|
||||
normalizedPath,
|
||||
});
|
||||
this.metadataStore.data.files[normalizedPath] = {
|
||||
path: normalizedPath,
|
||||
sha: files[normalizedPath].sha,
|
||||
dirty: false,
|
||||
justDownloaded: true,
|
||||
lastModified: Date.now(),
|
||||
};
|
||||
await this.metadataStore.save();
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue