Change the option names for GitLab

This commit is contained in:
Takeru Naito 2016-11-19 23:03:57 +09:00
parent 1808e612c5
commit 7ac4f71f42
No known key found for this signature in database
GPG key ID: 0967B4FC0A2D3E0E

View file

@ -92,9 +92,9 @@ elif grep -q "/scm/" <<<$giturl; then
else
# custom GitLab
gitlab_domain=$(git config --get gitopen.gitlab.domain)
gitlab_ssh_domain=$(git config --get gitopen.gitlab.ssh-domain)
gitlab_ssh_domain=$(git config --get gitopen.gitlab.ssh.domain)
gitlab_ssh_domain=${gitlab_ssh_domain:-$gitlab_domain}
gitlab_port=$(git config --get gitopen.gitlab.port)
gitlab_ssh_port=$(git config --get gitopen.gitlab.ssh.port)
if [ -n "$gitlab_domain" ]; then
if egrep -q "${gitlab_domain}|${gitlab_ssh_domain}" <<<$giturl; then
@ -108,8 +108,8 @@ else
giturl=${giturl/git\@${gitlab_ssh_domain}/${gitlab_domain}/}
# remove SSH port
if [ -n "$gitlab_port" ]; then
giturl=${giturl/\/:${gitlab_port}\///}
if [ -n "$gitlab_ssh_port" ]; then
giturl=${giturl/\/:${gitlab_ssh_port}\///}
fi
providerUrlDifference=tree
fi