pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Test the connection to a git repository without cloning it

Open ViktorPlohl opened this issue 2 years ago • 1 comments

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?

ViktorPlohl avatar Jan 12 '24 16:01 ViktorPlohl

Did you try ls_remotes?

hramrach avatar Apr 29 '24 17:04 hramrach