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
I tried to create a repo in a temp dir auto-generated by withSystemTempDirectory but it'd inexplicably throw a git exception.
After a bit of debugging I found out that it fails only when the given repoPath is empty; if it doesn't exist at all, it'll create the directory and repo.
I don't know how libgit works but this is contrary to how the git CLI works; you can git init an empty directory just fine.
The text was updated successfully, but these errors were encountered:
I tried to create a repo in a temp dir auto-generated by
withSystemTempDirectory
but it'd inexplicably throw a git exception.After a bit of debugging I found out that it fails only when the given
repoPath
is empty; if it doesn't exist at all, it'll create the directory and repo.I don't know how libgit works but this is contrary to how the git CLI works; you can
git init
an empty directory just fine.The text was updated successfully, but these errors were encountered: