diff options
author | James McCoy <jamessan@jamessan.com> | 2016-05-28 14:14:42 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-05-28 14:16:10 -0400 |
commit | e50b4fd36d2ad3c8d086de7badad120f19123aa6 (patch) | |
tree | 13edb8fc43529a2b24960b02c933f162b1e46fe0 | |
parent | 17868444985d8e22ac8373250a9996989be57a6c (diff) | |
download | rneovim-e50b4fd36d2ad3c8d086de7badad120f19123aa6.tar.gz rneovim-e50b4fd36d2ad3c8d086de7badad120f19123aa6.tar.bz2 rneovim-e50b4fd36d2ad3c8d086de7badad120f19123aa6.zip |
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.
-rwxr-xr-x | scripts/vim-patch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |