You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// debug.tsimportlgfrom"npm:wasm-git/lg2.js";lg.onRuntimeInitialized=()=>{constFS=lg.FS;constMEMFS=FS.filesystems.MEMFS;FS.mkdir("/working");FS.mount(MEMFS,{},"/working");FS.chdir("/working");FS.writeFile("/home/web_user/.gitconfig","[user]\n"+"name = Test User\n"+"email = [email protected]",);// clone a repository from githublg.callMain(["clone","https://github.com/torch2424/made-with-webassembly.git","clonedtest",]);FS.chdir("clonedtest");console.log(FS.readdir("."));lg.callMain(["log"]);};
It outputs an error:
$ time deno run -A debug.ts
[ ".", "..", ".git" ]
Could not find repository HEAD [-1] - reference 'refs/heads/master' not found
real 0m0.093s
user 0m0.130s
sys 0m0.073s
The text was updated successfully, but these errors were encountered:
I tried:
It outputs an error:
The text was updated successfully, but these errors were encountered: