mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
Fix incorrect dep fetch. Close #306.
* Add support to fish-theme-* and fish-plugin-* repo names, otherwise fisherman would end up trying to install the unknown dependencies. * Remove support for using `:' as a git tag delimiter when installing plugins as that was causing full URLs to be parsed incorrectly.
This commit is contained in:
parent
a8b004f89e
commit
9894e122c5
1 changed files with 2 additions and 2 deletions
|
@ -479,7 +479,7 @@ function __fisher_plugin_fetch_items
|
||||||
end
|
end
|
||||||
|
|
||||||
case \*
|
case \*
|
||||||
printf "%s\n" "$i" | sed 's/[@:]\(.*\)/ \1/' | read i branch
|
printf "%s\n" "$i" | sed 's/[@]\(.*\)/ \1/' | read i branch
|
||||||
set names (__fisher_plugin_get_names "$i")
|
set names (__fisher_plugin_get_names "$i")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1606,7 +1606,7 @@ function __fisher_plugin_get_names
|
||||||
{
|
{
|
||||||
sub(/\/$/, "")
|
sub(/\/$/, "")
|
||||||
n = split($0, s, "/")
|
n = split($0, s, "/")
|
||||||
sub(/^(omf|omf-theme|omf-plugin|plugin|theme|fish|fisher)-/, "", s[n])
|
sub(/^(omf|omf-theme|omf-plugin|plugin|theme|fish|fisher|fish-plugin|fish-theme)-/, "", s[n])
|
||||||
|
|
||||||
printf("%s\n%s\n", s[n], s[n - 1])
|
printf("%s\n%s\n", s[n], s[n - 1])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue