From 7ac4f71f422deab1601f122233aac175c96947d3 Mon Sep 17 00:00:00 2001 From: Takeru Naito Date: Sat, 19 Nov 2016 23:03:57 +0900 Subject: [PATCH] Change the option names for GitLab --- git-open | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/git-open b/git-open index 7352b37..8344057 100755 --- a/git-open +++ b/git-open @@ -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