Daniela Gavidia
posted this on November 16, 2011 12:59
Since October, 2011, BitBucket provides Git support. However, as of this writing Cloud9 IDE assumes that any repository that you want to clone from BitBucket is a Mercurial repository. As a result, if you have a Git repository in BitBucket and try to clone to edit this project from the dashboard, the cloning will fail.
You can get around this problem easily by fixing the url that Cloud9 IDE generates when you attempt to clone. When cloning a BitBucket repository, Cloud9 IDE uses a source url like the following:
ssh://hg@bitbucket.org/username/repositoryname
To clone a Git repository from BitBucket, change the url to look like this:
git@bitbucket.org:username/repositoryname.git
Notice the following differences:
Now, you should be able to clone your git repository from BitBucket.
Comments
Hi, Daniela - I'm making the changes noted above, but receiving this message:
Cannot read property 'hostname' of null
I'm having the same problem under a premium subscription for a private Git repository at Bitbucket, I've put through a ticket.
Can automatic detection be added? Should I submit a ticket?