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:
Jorge Bucaran 2016-06-02 18:48:03 +09:00
parent 2ff8eac108
commit d5869a7ea0
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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])
}