fish-shell / fish-shell/fish-shell

Clean state icon not shown in Git prompt with informative mode enabled

Open
#9,041 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
34.2k
Forks
2.4k
Avg merge
2d 8h
Merged PRs (30d)
13

Description

To reproduce:
```
winter@snowball ~> mkdir r
winter@snowball ~> cd r
winter@snowball ~/r> git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m
Initialized empty Git repository in /private/var/folders/t8/009s4fhn3jg9cb224djx3mrh0000gn/T/tmp.sS4Cqj1C/r/.git/
winter@snowball ~/r (master)> git config bash.showInformativeStatus true
winter@snowball ~/r (master)> echo "bar" >> foo
winter@snowball ~/r (master)> git add foo
winter@snowball ~/r (master +1)> git commit -m foo
Author identity unknown

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'winter@snowball.(none)')
winter@snowball ~/r (master +1) [128]> git config --global user.email "you@example.com"
git config --global user.name "Your Name"
winter@snowball ~/r (master +1)> git commit -m foo
[master (root-commit) 7b19037] foo
1 file changed, 1 insertion(+)
create mode 100644 foo
winter@snowball ~/r (master)>
```

Fish v3.5.0, `Darwin snowball 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:29 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T8101 arm64`, `xterm-256color`.

I've confirmed that this occurs in an environment with no customizations, and this did not happen in versions prior to 3.5.0.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.