mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
tests/git: Also give the email to stash
WHYYYYYYYY (anyway this seems to affect old git versions since we only seem to hit it on old Ubuntu)
This commit is contained in:
parent
d32449fe2e
commit
4a1a59c5a8
1 changed files with 5 additions and 3 deletions
|
@ -155,14 +155,16 @@ set -g __fish_git_prompt_status_order stashstate
|
|||
set -g ___fish_git_prompt_char_stashstate ''
|
||||
set -g ___fish_git_prompt_char_cleanstate ''
|
||||
|
||||
git -c user.email=banana@example.com -c user.name=banana commit -m Init >/dev/null
|
||||
set -l identity -c user.email=banana@example.com -c user.name=banana
|
||||
git $identity commit -m Init >/dev/null
|
||||
echo 'changed' > foo
|
||||
git stash >/dev/null
|
||||
# (some git versions don't allow stash without giving an email)
|
||||
git $identity stash >/dev/null
|
||||
fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch|1)
|
||||
|
||||
git stash pop >/dev/null
|
||||
git $identity stash pop >/dev/null
|
||||
fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch)
|
||||
|
|
Loading…
Reference in a new issue