libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Test the connection to a git repository without cloning it #1269

Open ViktorPlohl opened 5 months ago

ViktorPlohl commented 5 months ago

How can I test the connection to a git repository without cloning it?

I have a UI where the user fills in the data for connecting to a git repository. After they click on connect, I want to check if they can connect to the specified repository without cloning it, as cloning can take several minutes or even hours and happens in the background in a queue. Is there any way to do this in pygit2?

hramrach commented 2 months ago

Did you try ls_remotes?