petersalomonsen / wasm-git

GIT for nodejs and the browser using https://libgit2.org compiled to WebAssembly with https://emscripten.org
Other
649 stars 37 forks source link

Failed To Init with Template #76

Closed jeff-hykin closed 1 year ago

jeff-hykin commented 1 year ago

Hello! This technically isn't an issue, which is why I'll close the issue immediately after opening it. But I wanted to check to see if you had a pointer. If you've got no idea about this error don't worry about it.

So, I've gotten pretty far porting this library to Deno (thanks to deno's node-compatibilty mode).

However, when I clone a repository it makes all the git folders, creates an empty description file but then fails immediately after

ERROR 2: failed to initialize repository with template 'description': Invalid argument

Which originates from here inside the repo_write_template() function in libgit2.

I don't know why 'description' is being passed in to a template function (I'm not familiar with git's definition of a template), and thats made me a bit stumped as to what part of the javascript could be causing this failure, so I figured I should see if you ever dealt with something similar.