File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,9 +191,10 @@ async function publish(
191191 type === "site" ? target ?. url : undefined ,
192192 ) ;
193193
194+ const kPublishWorktreeDir = "quarto-publish-worktree-" ;
194195 // allocate worktree dir
195196 const temp = createTempContext (
196- { prefix : "quarto-publish-worktree-" , dir : projectScratchPath ( input ) } ,
197+ { prefix : kPublishWorktreeDir , dir : projectScratchPath ( input ) } ,
197198 ) ;
198199 const tempDir = temp . baseDir ;
199200 removeIfExists ( tempDir ) ;
@@ -202,7 +203,7 @@ async function publish(
202203 const worktreeDir = Deno . readDirSync ( projectScratchPath ( input ) ) ;
203204 for ( const entry of worktreeDir ) {
204205 if (
205- entry . isDirectory && entry . name . startsWith ( "quarto-publish-worktree-" )
206+ entry . isDirectory && entry . name . startsWith ( kPublishWorktreeDir )
206207 ) {
207208 debug (
208209 `Cleaning up leftover worktree folder ${ entry . name } from past deploys` ,
You can’t perform that action at this time.
0 commit comments