ctaggart / SourceLink

Source Code On Demand
MIT License
356 stars 55 forks source link

bitbucket 4.5.2 server url slightly different #361

Closed dazinator closed 6 years ago

dazinator commented 6 years ago

With the latest stable packages (2.8.3) I am seeing a bitbucket url embedded like this:

https://user@bitbucket.company.co.uk:8443/projects/san/repos/superlib/raw/SuperLib/SuperLib/SuperMan.cs?at=e0777d44f95cbaf7210dcbd7f316a9f1306eb275

We are running bitbucket server 4.5.2 which seems to want a slightly different url:

https://user@bitbucket.company.co.uk:8443/projects/SAN/repos/superlib/browse/SuperLib/SuperLib/SuperMan.cs?at=7e935c37d1af209cc4912a7d437e44f5e43a4dc4&raw

Would there be a workaround for this?

ctaggart commented 6 years ago

Yep, just set the SourceLinkUrl yourself.

ctaggart commented 6 years ago

See https://github.com/ctaggart/SourceLink/blob/master/Tests/When_parsing_links.cs for the format.

https://bitbucket.company.co.uk:8443/projects/SAN/repos/superlib/browse/SuperLib/SuperLib/SuperMan.cs?at={commit}&raw
dazinator commented 6 years ago

Super, thanks :-)