Skip to content

Commit 123bfda

Browse files
committed
add create checkpoint logic
1 parent f69d1f4 commit 123bfda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/contents.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,11 @@ export class Drive implements Contents.IDrive {
571571
* checkpoint is created.
572572
*/
573573
createCheckpoint(path: string): Promise<Contents.ICheckpointModel> {
574-
return Promise.reject('Repository is read only');
574+
const emptyCheckpoint: Contents.ICheckpointModel = {
575+
id: '',
576+
last_modified: ''
577+
};
578+
return Promise.resolve(emptyCheckpoint);
575579
}
576580

577581
/**

0 commit comments

Comments
 (0)