-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
Looks for .ssh folder in wrong location? #61
Comments
I try to mimic what msysGit does, using existing https://github.com/msysgit/msysgit/blob/devel/etc/profile#L48-54 I wonder if those lines need to appear earlier in posh-git.psm1 - can you try moving them right after the first line? |
See #73 |
Now that #73 has been merged, can you try latest and see if this fixes your issue? |
I have changed this to use PowerShell's built-in $HOME variable, which isn't itself an env var; however it is derived from the env vars In PowerShell
So it is better to avoid Is msysGit more *nixy and not like drive specifiers? If so, we could search $Home first and if .ssh is not found there, then we could search $Home with the drive specified stripped off. |
I had forgotten the module still includes: if (!$Env:HOME) { $Env:HOME = "$Env:HOMEDRIVE$Env:HOMEPATH" }
if (!$Env:HOME) { $Env:HOME = "$Env:USERPROFILE" } So really it should be pretty safe to use
Yeah, in Git Bash you will see |
I think 0.7.0 should resolve this but I don't run msysGit, so I can't test if it really is fixed. |
msysGit of 2012 is what we now call Git for Windows. At this point I'm basically content to let SSH issues sit (as if I hadn't been before 🙄) until someone gets fed up enough to spin off a project for it (#338). |
SSH functionality has been spun off into the |
(I'm posting this here, because GitHub said I should - I encountered this issue when launching the console from the GitHub for Windows app)
I (used to) use MsysGit, which looks in %HOME% for the .ssh folder. posh-git looks in %HOMEPATH%. This leads to two different .ssh folders.
Could posh-git be changed, so it looks for the .ssh-folder in %HOME% if this variable is present and falls back to %HOMEPATH% if it isn't? That way the transition from MsysGit to posh-git (or the use of both) would be a lot easier.
The text was updated successfully, but these errors were encountered: