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

stg status: error: while expanding shell alias (program not found) #441

Open
kqr opened this issue Apr 15, 2024 · 1 comment
Open

stg status: error: while expanding shell alias (program not found) #441

kqr opened this issue Apr 15, 2024 · 1 comment

Comments

@kqr
Copy link

kqr commented Apr 15, 2024

Running stg status on a fresh installation in Windows fails with the following error:

error: while expanding shell alias `<stuff>` program not found

I could work around this by adding c:\Program Files\Git\usr\bin to the path as specified in a different issue – presumably because this gives stgit access to sh.

I don't know if there's an actual problem with stgit here, so feel free to close the issue immediately. I'm mainly writing it up to share my workaround in case someone else has the same problem.

@char101
Copy link

char101 commented Jul 12, 2024

I also got the same error

stg add src\utils.ts
error: while expanding shell alias `add`: `git -C "$GIT_PREFIX" add`: program not found

And can also fix it by adding sh.exe to the path. The program not found message is most likely refering to sh.exe not found in path. In Windows, I don't think running git.exe requires a shell.

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

No branches or pull requests

2 participants