mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
Stash only for non-master branches.
This commit is contained in:
parent
a3f1813dd7
commit
08cceabe7e
1 changed files with 6 additions and 5 deletions
|
@ -7,8 +7,10 @@ function __fisher_path_update -a path
|
|||
return 1
|
||||
end
|
||||
|
||||
git stash --quiet ^ /dev/null
|
||||
git checkout master --quiet ^ /dev/null
|
||||
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
|
||||
git rebase --abort --quiet
|
||||
|
@ -17,11 +19,10 @@ function __fisher_path_update -a path
|
|||
git clean -d --force --quiet
|
||||
end
|
||||
|
||||
if test ! -z "$branch"
|
||||
if test "$branch" != master
|
||||
git checkout "$branch" --quiet
|
||||
git stash apply --quiet ^ /dev/null
|
||||
end
|
||||
|
||||
git stash apply --quiet ^ /dev/null
|
||||
|
||||
popd
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue