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.
This commit is contained in:
James McCoy 2016-05-28 14:14:42 -04:00
parent 1786844498
commit e50b4fd36d

View File

@ -92,7 +92,7 @@ commit_message() {
find_git_remote() { find_git_remote() {
git remote -v \ 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() { assign_commit_details() {