File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cloudflare/sandbox ' : patch
3+ ---
4+
5+ Fix ` options ` parameter types for ` gitCheckout `
Original file line number Diff line number Diff line change @@ -1868,12 +1868,12 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
18681868
18691869 async gitCheckout (
18701870 repoUrl : string ,
1871- options : { branch ?: string ; targetDir ?: string ; sessionId ?: string }
1871+ options ? : { branch ?: string ; targetDir ?: string ; sessionId ?: string }
18721872 ) {
1873- const session = options . sessionId ?? ( await this . ensureDefaultSession ( ) ) ;
1873+ const session = options ? .sessionId ?? ( await this . ensureDefaultSession ( ) ) ;
18741874 return this . client . git . checkout ( repoUrl , session , {
1875- branch : options . branch ,
1876- targetDir : options . targetDir
1875+ branch : options ? .branch ,
1876+ targetDir : options ? .targetDir
18771877 } ) ;
18781878 }
18791879
You can’t perform that action at this time.
0 commit comments