Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repoAutoCreate = True throws GitException: "Could not find repository from /..." when empty dir exists at repoPath #110

Open
Atemu opened this issue Apr 16, 2024 · 0 comments

Comments

@Atemu
Copy link

Atemu commented Apr 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant