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

Change Bitbucket Default Clone URL #113

Open
greenyouse opened this issue Apr 4, 2020 · 1 comment
Open

Change Bitbucket Default Clone URL #113

greenyouse opened this issue Apr 4, 2020 · 1 comment

Comments

@greenyouse
Copy link
Contributor

Hi, I found one other issue with the Bitbucket client. When a repository is created in Bitbucket the HTTP clone URL can have different formats depending on what the admin settings are for the repository or server.

The default clone URL from Bitbucket only includes the username but it looks like the current client setup is hard coded to use a URL with the username and password. Here's an example of the difference:

https://{username}@bitbucket.org/{repo}.git
https://{username}:{password}@bitbucket.org/{repo}.git

The zoekt client will currently fail to clone the repository unless it uses the custom format with a username and password.

I had a hard time finding this called out explicitly in the Bitbucket docs but this page shows an example of the default clone setup.

Could the default clone URL be the username format? Then maybe a Bitbucket option could be added to the config to allow the custom username + password URL to be used?

@huasome
Copy link

huasome commented Apr 6, 2020

I have a patch for zoekt for that.

master...squarit:master

It also includes pulling from a smart mirror.

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