-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support getting spec Git info when active shell differs in syntax from bash #22454
Comments
Some historical context here - we ended up using a shell command to get Git info here because we couldn't find a good light-weight "Git client" that we could use to get the info. If we're looking to do a re-write of this that uses a library with bindings for working with Git (which should avoid this shell issue), https://github.com/desktop/dugite looks promising. |
Just to provide more context, it looks like this was added to work around issues with the default shell ( We could look into a custom There's also some context around the custom exit code handling in this JIRA ticket, just for full context: https://cypress-io.atlassian.net/browse/UNIFY-1794 |
If anyone can find a fast way to do this with a Node git client, that'd be great, but I don't know if you can or not. You can't do a "give me all the last modified date/status" with raw git, and thus no wrappers can do it, either. This is the fastest way I could find. I can't remember the exact problem but @mike-plummer is correct, there is some edge case We could do an audit of popular linux OSes, but forcing Alternative would be including a fish compat syntax, but I don't know how to do that, and I don't know the added complexity is better than just forcing |
Thanks for the context, @lmiller1990. I poked at this a little bit before the break and it seems like we should be able to use |
The code for this is done in cypress-io/cypress#22741, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
What would you like?
I'd like to be able to see Git info for my project even if my active shell uses a different syntax than bash. Currently I use Fish Shell as my default shell on Mac. When Cypress tries to load Git info for my project, it uses syntax that isn't supported by my active shell (Fish in this case).
The result is that my project's Git info doesn't show in the spec list
Why is this needed?
This improvement would be useful for people who use different default shells and run Cypress on their machine.
Other
When we execute the command to get the Git info, we use the active shell and fall back to bash.
Forcing the use of bash fixes the issue in my case but I imagine that there are some cases where we need to use the active shell.
The text was updated successfully, but these errors were encountered: