mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-05 12:00:17 +00:00
Fix regression causing update to fail in some plugins.
This commit is contained in:
parent
03baee2d24
commit
aa8a98a966
@ -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
|
||||
|
||||
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 ^ /dev/null
|
||||
|
||||
if test ! -z "$branch"
|
||||
git checkout "$branch" --quiet
|
||||
end
|
||||
|
||||
if test "$branch" != master
|
||||
git checkout "$branch" --quiet
|
||||
git stash apply --quiet ^ /dev/null
|
||||
end
|
||||
|
||||
popd
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user