@@ -132,12 +132,12 @@ function _git-remote-info() {
132
132
[[ " ${VCS_STATUS_LOCAL_BRANCH:- } " == " ${VCS_STATUS_REMOTE_BRANCH:- } " ]] && same_branch_name=true
133
133
# no multiple remote support in gitstatusd
134
134
if [[ " ${SCM_GIT_SHOW_REMOTE_INFO:- } " == " true" || " ${SCM_GIT_SHOW_REMOTE_INFO:- } " == " auto" ]]; then
135
- if [[ " ${same_branch_name} " != " true" ]]; then
135
+ if [[ " ${same_branch_name:- } " != " true" ]]; then
136
136
remote_info=" ${VCS_STATUS_REMOTE_NAME} /${VCS_STATUS_REMOTE_BRANCH} "
137
137
else
138
138
remote_info=" ${VCS_STATUS_REMOTE_NAME} "
139
139
fi
140
- elif [[ ${same_branch_name} != " true" ]]; then
140
+ elif [[ ${same_branch_name:- } != " true" ]]; then
141
141
remote_info=" ${VCS_STATUS_REMOTE_BRANCH} "
142
142
fi
143
143
if [[ -n " ${remote_info} " ]]; then
@@ -151,12 +151,12 @@ function _git-remote-info() {
151
151
[[ " $( _git-branch) " == " $( _git-upstream-branch) " ]] && same_branch_name=true
152
152
if [[ (" ${SCM_GIT_SHOW_REMOTE_INFO} " == " auto" && " $( _git-num-remotes) " -ge 2) ||
153
153
" ${SCM_GIT_SHOW_REMOTE_INFO} " == " true" ]]; then
154
- if [[ " ${same_branch_name} " != " true" ]]; then
154
+ if [[ " ${same_branch_name:- } " != " true" ]]; then
155
155
remote_info=" \$ (_git-upstream)"
156
156
else
157
157
remote_info=" $( _git-upstream-remote) "
158
158
fi
159
- elif [[ ${same_branch_name} != " true" ]]; then
159
+ elif [[ ${same_branch_name:- } != " true" ]]; then
160
160
remote_info=" \$ (_git-upstream-branch)"
161
161
fi
162
162
if [[ -n " ${remote_info} " ]]; then
0 commit comments