I have this piece of code in typescript:
const cleanFolder = containerWithZsh.withMountedDirectory(justDotGitPath, justDotGitFolder)
.withWorkdir(appRoot)
.withRun("git checkout -f")
.terminal()
.directory(appRoot)
console.log(await cleanFolder.entries())
when I am inside the terminal() and execute the ls -la command I see the .git folder and also all the folders from my git repo (which means the git checkout -f worked)
but when console.log(await cleanFolder.entries()) is executed, the .git folder is missing.
anyone has an idea about that ?