Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poshgit doesn't report change values when inside the .github directory #873

Closed
jethas-bennettjones opened this issue Oct 1, 2021 · 2 comments · Fixed by #874
Closed

Comments

@jethas-bennettjones
Copy link
Contributor

System Details

  • posh-git version/path: 1.0.0 ~\Documents\PowerShell\Modules\posh-git\1.0.0
  • PowerShell version: 7.1.4
  • git version 2.31.1.windows.1
  • OS: Microsoft Windows NT 10.0.19043.0

Issue Description

I am experiencing a problem with seeing the git status in the prompt when I am in the .github directory.

Here is what I see:
image

@dahlbyk
Copy link
Owner

dahlbyk commented Oct 1, 2021

Good find! There are two places we try to detect if we're inside a .git folder, and it turns out path/to/.github starts with path/to/.git:

Marking as Up-for-Grabs, if someone wants to take a crack at it.

@jethas-bennettjones
Copy link
Contributor Author

@dahlbyk I took a stab at it. Please check out the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants