rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.67k stars 384 forks source link

Can't delete Repository after cloned with RepoBuilder via SSH #899

Closed tzAcee closed 1 year ago

tzAcee commented 1 year ago

Hey I want to read/write files in a cloned repository but cant achieve that because I get "os error 5 - acces denied".

Im cloning the repository via SSH image

If I want to delete the repository afterwards the FileExplorer wants me to do it with extended rights - which is not possible on my machine.

Without the RepoBuilder accesing/deleting worked fine, but I couldn't clone my SSH Repo of course, which is necessary so I switched to the RepoBuilder.

Is there something off with my configuration or credentials callback?

tzAcee commented 1 year ago

PEBKAC...

Well, with the deletion Im not that wrong the hidden .git file is kinda protected so I cant delete the parent folder. Maybe I will created an issue if I try to delete the repo in my code and its not working (but not now).

But for my reading issue: Trying to read the file content of an directory isn't that smart lol