mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Create remote manifest on first sync with local manifest content
This commit is contained in:
parent
b2f3db6050
commit
e33de48075
1 changed files with 4 additions and 1 deletions
|
|
@ -137,9 +137,12 @@ export default class SyncManager {
|
|||
// API doesn't let us create a new tree when the repo is empty.
|
||||
// So we create a the manifest file as the first commit, since we're going
|
||||
// to create that in any case right after this.
|
||||
const buffer = await this.vault.adapter.readBinary(
|
||||
normalizePath(`${this.vault.configDir}/${MANIFEST_FILE_NAME}`),
|
||||
);
|
||||
await this.client.createFile({
|
||||
path: `${this.vault.configDir}/${MANIFEST_FILE_NAME}`,
|
||||
content: "",
|
||||
content: arrayBufferToBase64(buffer),
|
||||
message: "First sync",
|
||||
retry: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue