From e50b4fd36d2ad3c8d086de7badad120f19123aa6 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sat, 28 May 2016 14:14:42 -0400 Subject: [PATCH] vim-patch.sh: Only print the first neovim/neovim remote name If a user has multiple remotes set for neovim/neovim, then find_get_remote was returning 'remote1\nremote2\n', which breaks anything trying to use it. Since we're just using this remote to fetch from, any one will do. --- scripts/vim-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 7a0001769a..62f2b80a82 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -92,7 +92,7 @@ commit_message() { find_git_remote() { git remote -v \ - | awk '$2 ~ /github.com[:/]neovim\/neovim/ && $3 == "(fetch)" {print $1}' + | awk '$2 ~ /github.com[:/]neovim\/neovim/ && $3 == "(fetch)" {print $1; exit}' } assign_commit_details() {