JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.42k stars 2.39k forks source link

Shows SHA instead of branch name when upstream gone #138

Closed centreboard closed 4 years ago

centreboard commented 4 years ago

Prerequisites

Description

Shows SHA instead of branch name when upstream gone

Environment

Steps to Reproduce

  1. Checkout a branch from upstream
  2. Delete upstream branch and run git fetch --prune

Expected behavior: Shows local branch name with branch gone symbol

Actual behavior: Shows the SHA of the commit

image

Running

git status -unormal --short --branch ## tower_sizes...origin/tower_sizes [gone]

Running git branch --unset-upstream does then show branch name

image

JanDeDobbeleer commented 4 years ago

Can fix 👍🏻

github-actions[bot] commented 5 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.