Problem
When there is no upstream tracking branch configured, the status command reports 0 unpushed entries instead of indicating that remote tracking is not set up.
Expected Behavior
- If no upstream tracking branch exists, display a message like
No remote tracking branch configured or Remote: not configured.
- Do not report a misleading count of 0 unpushed.
Current Behavior
status shows Unpushed: 0 which incorrectly implies everything is synced, when in reality there is no remote to compare against.
Suggested Fix
Check for the existence of an upstream tracking branch before computing the unpushed count. If no tracking branch exists, display an appropriate status message instead of a numeric count.
Problem
When there is no upstream tracking branch configured, the
statuscommand reports 0 unpushed entries instead of indicating that remote tracking is not set up.Expected Behavior
No remote tracking branch configuredorRemote: not configured.Current Behavior
statusshowsUnpushed: 0which incorrectly implies everything is synced, when in reality there is no remote to compare against.Suggested Fix
Check for the existence of an upstream tracking branch before computing the unpushed count. If no tracking branch exists, display an appropriate status message instead of a numeric count.