dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Adding new project from bitbucket fails indicating to match requested format when no format is specified #3

Closed ghost closed 11 years ago

ghost commented 11 years ago

Low priority issue, but bothersome all the same - couldn't determine what the correct format was.

Trying to add a new project to PHPCI from bitbucket, kept getting error message to match the requested format when the format wasn't specified.

Was able to work around this by guessing that it wanted only part of the URL, yet bitbucket is different from github, most devs on bitbucket are used to capturing the path from the clone button which is different from the URL bar. This should be specified somewhere.

ex. path from clone bar git@bitbucket.org:j88per/codereview.git

actual path that worked - this is unusual for me.
j88per/codereview

dancryer commented 11 years ago

Thanks for this, I didn't realise Bitbucket had that convention.

I've updated the add / edit project form to accept URLs from both Github and Bitbucket and extract just the bit we need out of them.

So pasting git@bitbucket.org:j88per/codereview.git will work, it'll just replace with j88per/codereview.git