google / zoekt

Fast trigram based code search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Bitbucket Default Clone URL

greenyouse opened this issue · comments

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?

I have a patch for zoekt for that.

master...squarit:master

It also includes pulling from a smart mirror.