mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +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
2ff8eac108
commit
d5869a7ea0
1 changed files with 2 additions and 2 deletions
|
@ -479,7 +479,7 @@ function __fisher_plugin_fetch_items
|
|||
end
|
||||
|
||||
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")
|
||||
end
|
||||
|
||||
|
@ -1606,7 +1606,7 @@ function __fisher_plugin_get_names
|
|||
{
|
||||
sub(/\/$/, "")
|
||||
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])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue