packagist error when adding bitbucket repository - bitbucket

I get the following error when trying to add a repository.
Uncaught Exception: [RuntimeException] Failed to execute git clone --mirror 'git#bitbucket.org:doppy/doppy.git' '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git/' Cloning into bare repository '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git'... Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
The repository is public and when I copy and run the command locally I don't get any error.
I guess this an issue on the packagist server itself with the bitbucket servers?
side note: yeah, I understand it is a silly repo. I fully intend to remove it when done testing and cleanup my own mess.

Feedback from composer user mailing list:
https://groups.google.com/forum/#!topic/composer-users/ciGcpehsvy4
I think the problem is we don't support git# connections to bitbucket as
we don't have an ssh key set up for them. Make sure you use the HTTPS
clone URL and that should work:
https://bitbucket.org/doppy/doppy.git
Cheers

Related

Git clone failing on Windows-Flutter,iOS

I'm trying to clone the git repository that was created initially using mac. I'm getting the below error while cloning on Windows machine.
error: invalid path build\ios/Runner.build/Release-iphoneos/Runner.build/dgph
P.S: I'm able to clone it on my mac machine with no problem.
Tell the owner of the repo to delete a folder named build/ios. Thats what i did to solve it on my hand.

TortoiseHG clone Issue

I tried multiple times to clone my project but every time I received NOT FOUND ERROR: 255
Please review the attached screenshot. Thanks you
Isnt TortoiseHG a Mercurial client. And you should not write git clone in the address field and most likely even not https.
Bitbucket stopped serving Mercurial projects, now it's only git.
I think you should try using Bitbucket's own git client.

'git status' failed with code 128: fatal: unable to read

I want to use Bitbucket for my iOS project but I am getting error after creating repository. Please find error given below:
'git status' failed with code 128: fatal: unable to read
How can I resolve this?
git status is a local operation, so it should not be impacted by the fact your repository is hosted on Bitbucket.
Try (outside of XCode) a git status to see if the issue persists: simply check the rights associated with those files, are they owned by the right user/group on your machine?
Try also to clone again your Bitbucket repository (to a new empty local folder) and see if you can read it (git status) and import it in XCode.
If the message is "unable to read <sha1>", then the repository might be corrupted, as detailed in:
"Git status does not work : unable to find, unable to read"
"How to fix corrupted Git repository?"
Check this with git fsck --full.

Cannot clone Git repository into sourcetree, Login screen keeps appearing

In BitBucket, when I select clone into source tree, the URL is of format
Sourcetree opens with details to clone, but keeps asking for my login details no matter how many times I enter them.
https://myname#bitbucket.org/mygroup/myrepository.git
I have no problems on a different computer ( also Windows 10 )
I have tried upgrading SourceTree and Reinstalling Source Tree
I have tried System Git and Embedded Git and reinstalling both Git
I can clone Mercurial repositories
At the Dos prompt I can type
git clone https://myname#bitbucket.org/mygroup/myrepository.git
I get a message
fatal: HttpRequestException encountered
An error occurred wihe sending the request
then it asks for my password
then it proceeds with the clone
However in sourcetree the repository shows that there are more branches to pull.
I am unable to pull these branches
When I go to the Tools->Options->Authentication tab I can see myname#bitbucket.org as an Account.
If I try to add myname#mydomain.com.au I get
Authentication failed
Invalid URL: The hostname could not be parsed.
Atlassian community
"The only thing that worked for me was navigating to C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree and removing the passwd file."
Had the same problem , but on MacOS. Just for completion of the answer I will add that on MacOS the passwords are stored in the KeyChain Access and they need to be deleted from there.

Gerrit client -remote configuration

I have installed Git and Gerrit and prepared remote site.
I am facing communication issue between Client and Remote.
My Config file looks as below,
enter image description here
Error while doing clone,
Fatal: Could not read from remote repository
Please make sure you have the correct access rights.

Resources