Url matching in extract_repository_info is too strict

Issue #2 invalid
Trang Pham created an issue

This causes "Repository does not seem to be hosted in Stash (RuntimeError)"

My repositories are cloned using the ssh link from bitbucket.

Comments (2)

  1. Trang Pham reporter

    Using url = git@bitbucket.org:/thuutrangpham/cmstarr.git in .git/config does not trigger error

    but clone link in bitbucket is git@bitbucket.org:thuutrangpham/cmstarr.git which does cause error.

    Before & After I change the regex I'll get a JSON parse error "error: 757: unexpected token at '<!DOCTYPE html>"

    I suspect this is another issue: 404 http response not handled well

    The body contains: "<div id="error" class="404"> <span class="icon icon-404"></span> <h1>Oops, you've found a dead link.</h1> <p>Use the links at the top to get back.</p> </div>"

    Edit: I'm not very clear on what the stash url should be (could be the real root of problem). I suggest editing read me to make it clear what link should be/look like and also using regex to check stash url then give the user some feedback when doing "stash configure"

  2. Log in to comment