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

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

Open
ViktorPlohl opened this issue Jan 12, 2024 · 1 comment
Open

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

ViktorPlohl opened this issue Jan 12, 2024 · 1 comment

Comments

@ViktorPlohl
Copy link

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
Copy link

Did you try ls_remotes?

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

2 participants