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

exec: "absolute\\path\\to\\hub.exe.exe": file does not exist #2384

Closed
zmni opened this issue Dec 9, 2019 · 3 comments
Closed

exec: "absolute\\path\\to\\hub.exe.exe": file does not exist #2384

zmni opened this issue Dec 9, 2019 · 3 comments

Comments

@zmni
Copy link

zmni commented Dec 9, 2019

Command attempted:
git help <hub-command>

What happened:
I set git as an alias for hub with Set-Alias -Name git -Value "absolute\path\to\hub.exe". And it works. But only the above command caused this problem.

More info:

  1. Put Set-Alias -Name git -Value "absolute\path\to\hub.exe" in your PowerShell profile.
  2. Reload $PROFILE and run git help <hub-command>
Windows 8.1 x64
git version 2.22.0.windows.1
hub version 2.13.0
@zmni zmni added the bug label Dec 9, 2019
@mislav
Copy link
Owner

mislav commented Dec 9, 2019

Sorry to hear you're having trouble!

This works for me:

Set-Alias -Name git -Value "C:\Users\Mislav\AppData\Local\GitHubCLI\bin\hub.exe"

git help fork

Can you paste the exact git help ... command you've ran and the error message? You can scrub sensitive directory names from the path if needed

@zmni
Copy link
Author

zmni commented Dec 10, 2019

mI43J8DUDX

This is what I put in my $PROFILE:

Set-Alias -Name git -Value "$env:Bin\github\bin\hub.exe"

hub.exe is not in $env:Path and I use a environtment variable in the path to hub binary, that is also an absolute path right? If not, maybe the admin can change the title of this issue.

@mislav mislav closed this as completed in 7b02a66 Dec 10, 2019
@mislav
Copy link
Owner

mislav commented Dec 10, 2019

Thank you! You've helped me find the bug. 🙇

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

No branches or pull requests

2 participants