From deb12c8730cb0ced8ad125be274310abc9877d69 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Thu, 8 Aug 2024 10:34:22 +0300 Subject: [PATCH] fix: git open plugin --- plugins/git_custom_commands.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git_custom_commands.plugin.zsh b/plugins/git_custom_commands.plugin.zsh index 4854cfe1..fded79a7 100755 --- a/plugins/git_custom_commands.plugin.zsh +++ b/plugins/git_custom_commands.plugin.zsh @@ -21,7 +21,7 @@ git_get_repo_path() { repo_path='' if [[ $remote =~ ^git@ ]]; then - repo_path=$(echo "$remote" | sed -E 's/^git@[^:]+:([^\.]+)\.git$/\1/') + repo_path=$(echo "$remote" | sed -E 's/^git@[^:]+:([^:]+)\.git$/\1/') elif [[ $remote =~ ^https?:// ]]; then repo_path=$(echo "$remote" | sed -E 's|^https?://[^/]+/([^\.]+)\.git$|\1|') fi @@ -45,7 +45,7 @@ git_get_remote_type() { repo_path=$(git_get_repo_path $remote) remote_type='github' case $remote in - *github.com*) + *github.com*) remote_type='github' ;; *gitlab.com*)