Unverified Commit 07cdd7a5 authored by Pooya Vahidi's avatar Pooya Vahidi Committed by GitHub

fix(lib): fix status exit code check in `git_prompt_status` (#10275)

parent 1c9a64ec
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment