mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Stash changes and pull rebase to update. Fix #103
This commit is contained in:
parent
0bc883f80c
commit
5271b14975
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
function __fisher_path_update -a path
|
function __fisher_path_update -a path
|
||||||
pushd $path
|
pushd $path
|
||||||
|
|
||||||
debug "Update repository '%s'" "$path"
|
git checkout master --quiet
|
||||||
|
git stash --quiet
|
||||||
git checkout master --quiet ^ /dev/null
|
|
||||||
git pull --rebase origin master --quiet
|
git pull --rebase origin master --quiet
|
||||||
|
git stash apply --quiet
|
||||||
|
|
||||||
popd
|
popd
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue