diff options
| author | Pooya Vahidi <56851682+pooyavahidi@users.noreply.github.com> | 2021-10-09 21:02:49 +1100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-09 12:02:49 +0200 | 
| commit | 07cdd7a53931a17a2c24f834c5e1ea0f62609c42 (patch) | |
| tree | 6155af452ff6e82f11d9f8d6f5151bd9cab3bf01 /lib | |
| parent | 1c9a64ece6dce901aac114deaa71b298a32fbfb4 (diff) | |
| download | zsh-07cdd7a53931a17a2c24f834c5e1ea0f62609c42.tar.gz zsh-07cdd7a53931a17a2c24f834c5e1ea0f62609c42.tar.bz2 zsh-07cdd7a53931a17a2c24f834c5e1ea0f62609c42.zip  | |
fix(lib): fix status exit code check in `git_prompt_status` (#10275)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/git.zsh | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index c9363274c..9a615e77b 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -206,7 +206,8 @@ function git_prompt_status() {      STASHED UNMERGED AHEAD BEHIND DIVERGED    ) -  local status_text="$(__git_prompt_git status --porcelain -b 2> /dev/null)" +  local status_text +  status_text="$(__git_prompt_git status --porcelain -b 2> /dev/null)"    # Don't continue on a catastrophic failure    if [[ $? -eq 128 ]]; then  | 
