mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Merge 4db6778346 into 73b460f582
This commit is contained in:
commit
ae4d587a52
4
git-open
4
git-open
|
|
@ -90,6 +90,10 @@ elif grep -q "/scm/" <<<"$giturl"; then
|
|||
re='(.*)/scm/(.*)/(.*)\.git'
|
||||
if [[ $giturl =~ $re ]]; then
|
||||
giturl=${BASH_REMATCH[1]}/projects/${BASH_REMATCH[2]}/repos/${BASH_REMATCH[3]}
|
||||
|
||||
giturl=${giturl/http\:\/\/[^\@]*\@/http\:\/\/}
|
||||
giturl=${giturl/https\:\/\/[^\@]*\@/https\:\/\/}
|
||||
|
||||
providerUrlDifference=browse
|
||||
branch="?at=refs%2Fheads%2F${branch}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue