Don't return 1 if there were no updates.

pull/445/head
Jorge Bucaran 8 years ago
parent aca2314e64
commit fca41816e1
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -6,12 +6,12 @@ function __fisher_path_update -a path
set -l commits (
git rev-list --left-right --count "master..FETCH_HEAD" ^ /dev/null | cut -d\t -f2)
git reset --quiet --hard FETCH_HEAD
git reset --quiet --hard FETCH_HEAD ^ /dev/null
git clean -qdfx
popd
if test "$commits" -eq 0 -o -z "$commits"
if test -z "$commits" -o "$commits" -eq 0
return 1
end

@ -135,7 +135,7 @@ function fisher_update -d "Update plugins"
if test -z "$fisher_updated_plugins"
printf "No plugins were updated.\n" > $stdout
set -e fisher_updated_plugins
return 1
return
end
end

Loading…
Cancel
Save