Skip to content

Status shows 0 unpushed when no upstream tracking branch #76

@vraspar

Description

@vraspar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority/p2Priority 2 - Important

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions