JanDeDobbeleer / oh-my-posh

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

feat(git): show status when the .git folder is moved. #2074

Closed LeonS13 closed 2 years ago

LeonS13 commented 2 years ago

Code of Conduct

What happened?

When you have a valid repository that was created with: git init --separate-git-dir /path/to/repo.git Oh My Posh does not show any status. The repo works fine and can be checked with git-status without any problems. Also GUI tools like Sourcetree have no trouble with a moved git directory. I think Oh My Posh only tries to find a folder .git and when it does not find it then it asumes the folder is not a repository. It should also look for a file called .git and check if there is a line in the file containing the new location of the git directory. Linux and windows examples below.
gitdir: /path/to/repo.git gitdir: C:\path\to\repo.git

Theme

Default theme.

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

No logging available, Oh MY Posh just does not recognize a folder with a moved .git folder.
JanDeDobbeleer commented 2 years ago

@LeonS13 correct, that use-case was unknown to me. Will address when I'm back from holidays.

lnu commented 2 years ago

@LeonS13 Can you confirm it works on your side with the latest version?

LeonS13 commented 2 years ago

Can confirm it works with the latest version, thanks for the insane fast response.

Met vriendelijke groeten / Meilleures salutations / Best regards Leon Straathof Infrastructure Architect

From: Laurent Nullens @.> Sent: Monday, 11 April 2022 22:39 To: JanDeDobbeleer/oh-my-posh @.> Cc: Leon Straathof @.>; Mention @.> Subject: Re: [JanDeDobbeleer/oh-my-posh] feat(git): show status when the .git folder is moved. (Issue #2074)

@LeonS13 Can you confirm it works on your side with the latest version?

— Reply to this email directly, view it on GitHub. You are receiving this because you were mentioned.Message ID: @.**@.>>

github-actions[bot] commented 7 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.