From a9f97226ae4a536f699baa6d29d86063036fffa9 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 24 Apr 2016 13:49:00 +0200 Subject: vim-patch.sh: fix/improve pattern with find_git_remote --- scripts/vim-patch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 17df9b1aaa..70777535cb 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -87,7 +87,8 @@ commit_message() { } find_git_remote() { - git remote -v | awk '/neovim\/neovim.*(fetch)/{print $1}' + git remote -v \ + | awk '$2 ~ /github.com[:/]neovim\/neovim/ && $3 == "(fetch)" {print $1}' } assign_commit_details() { -- cgit