Merge pull request #372 from fisherman/issue-371

Prevent additional remotes per plugin from affecting fishfile
This commit is contained in:
Eric Mrak 2017-03-04 21:57:06 -08:00 committed by Jorge Bucaran
commit 5b080122f8

View file

@ -1644,12 +1644,13 @@ function __fisher_plugin_get_url_info -a option
return
end
command cat {$argv}/.git/config ^ /dev/null | command awk -v option="$option" '
/url/ {
n = split($3, s, "/")
for dir in $argv
git -C $dir config remote.origin.url ^ /dev/null | command awk -v option="$option" '
{
n = split($0, s, "/")
if ($3 ~ /https:\/\/gist/) {
printf("# %s\n", $3)
if ($0 ~ /https:\/\/gist/) {
printf("# %s\n", $0)
next
}
@ -1664,6 +1665,7 @@ function __fisher_plugin_get_url_info -a option
}
}
'
end
end