mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
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:
parent
1786844498
commit
e50b4fd36d
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user