Version Information
Cmder version: All versions.
Cmder Edition
Cmder Full (with Git)
Description of the issue
A breaking change in git has made it no longer possible to get the git branch name just by reading the HEAD file. Now it's necessary to invoke git.exe. In a git repo that uses the new reftable storage system, the HEAD file is hard-coded to say that the branch name is ".invalid". So that's what shows up in the prompt.
How to reproduce
- Using the latest version of git
- Run
git init test_repo && cd test_repo
- Verify that
git config extensions.refstorage returns reftable
- Observe the branch name is ".invalid" in Cmder
Additional context
I submitted #3056 with changes that should fix the problem.
Please test and verify before approving the pull request. I tested the changes with Cmder 1.3.25, but I may have missed something, or my testing might not have been sufficient for newer unreleased versions of Cmder.
Checklist
Version Information
Cmder Edition
Cmder Full (with Git)
Description of the issue
A breaking change in git has made it no longer possible to get the git branch name just by reading the HEAD file. Now it's necessary to invoke git.exe. In a git repo that uses the new reftable storage system, the HEAD file is hard-coded to say that the branch name is ".invalid". So that's what shows up in the prompt.
How to reproduce
git init test_repo && cd test_repogit config extensions.refstoragereturnsreftableAdditional context
I submitted #3056 with changes that should fix the problem.
Please test and verify before approving the pull request. I tested the changes with Cmder 1.3.25, but I may have missed something, or my testing might not have been sufficient for newer unreleased versions of Cmder.
Checklist