mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -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() {
|
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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user