Fix regression causing update to fail in some plugins.

This commit is contained in:
Jorge Bucaran 2016-03-02 10:39:13 +09:00
parent 9be9b5bce0
commit 08811f3f8e
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -7,22 +7,21 @@ function __fisher_path_update -a path
return 1
end
if test "$branch" != master
git stash --quiet ^ /dev/null
git checkout master --quiet ^ /dev/null
end
git stash --quiet ^ /dev/null
git checkout master --quiet ^ /dev/null
if not git pull --rebase origin master --quiet ^ /dev/null
if not git pull --rebase origin master --quiet
git rebase --abort --quiet
git fetch origin master --quiet
git reset --hard FETCH_HEAD --quiet
git clean -d --force --quiet
end
end ^ /dev/null
if test "$branch" != master
if test ! -z "$branch"
git checkout "$branch" --quiet
git stash apply --quiet ^ /dev/null
end
git stash apply --quiet ^ /dev/null
popd
end