-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
ssh clone does not correctly detect the location of ssh.exe #1432
Comments
Could you also show what Git does with Oh, and learning where Otherwise I could imagine that it finds The reason it has to do its own PATH lookup is to prevent Windows to launch executables that are in the current working directory, which is a blunder My feeling is that it should be able to find Also CC @EliahKagan |
General Windows, Rust, and gitoxide path search subtleties
It's true that the underlying (That fix came in with Rust 1.58.0, per the milestone linked from the PR and the tags listed as having the merge commit. The minimum supported Rust version for gitoxide is currently 1.67.0.) For this reason, I am not sure if any of the manual
Depending on what turns out to be going on in this issue, all the above might be peripheral. Either way, I should probably post something separate about this. If it's just about how things are good and don't need to be changed, I can make a discussion post; if it's about how maybe things should be changed to simplify some code in gitoxide and bring We don't find
|
Thanks a lot for researching this, @EliahKagan. Your help is much appreciated (as always :)).
Thanks for researching this! If memory serves,
Yes, this is what I meant.
I agree, but also think that
And it does. You might find interesting that it reads all environment variables that map to git configuration on repository initialization, creating environment overrides in the configuration accordingly. That way environment variables that affect the runtime then become explicit:
@Mr-Ao-Dragon Could you check if the environment variables mentioned above are set to a value and if so, post it here? Finally, could you see if you can invoke |
ok, i will try it |
I've set it up based on this blog |
Apologies, but I don't think any of my questions was answered. |
I actually don't know what's going on, I tried the diagnostic commands you guys provided about gix but that didn't do anything, it's strange, gix does seem to detect the path but it seems to be ambiguously on the path, I found it detects more paths with more \\ |
Attempting to playback the linked asciinema/PowerSession recording looks broken |
I didn't try it, but maybe it only works in a powershell? Even though it aims to be compatible to Asciinema, I have a feeling that it will not play similarly in every terminal. Personally, I didn't try to play it back at all, too many hoops for me. In a way, this issue seems stalled in terms of acquisition of information, but I hope that maybe similar issues arise with others who might chime in. In any case, I am sure eventually we will get to the bottom of this. |
I tried both. In Bash using asciinema and in PowerShell using PowerSession. Both through Windows Terminal, though the former in WSL2. Both had identical results. |
Attempting to read the raw PowerSession log makes it look like the extra backslashes are really present in the configured value, but I am far from sure. Furthermore, repeated directory separators should not keep a path from working, so even if that is the case, it is not itself sufficient to dismiss this issue. However, with only the information here so far, I think it is unclear that there is really a bug. Furthermore, if there is a bug, and it is later fixed, I think it would be hard even to know it was the same bug as described here. Likewise, if a bug is fixed that seems to match this, that might still be a different bug. If this configuration is working with Instead of recording, I recommend copying the text from the terminal, and pasting it into the issue description (or into a new comment).
Images, videos, and similar representations of terminal actions or contents tend to be much more difficult to use for debugging purposes than the actual text from the terminal. Copying and pasting the text is, in my opinion, by far the best way to share it, in nearly all situations. However, if for some reason none of that is possible or you otherwise strongly prefer to present the playback of a recording, then you could upload the recording linked in #1432 (comment) (or a new one) to You may already have done this, but if so, that is not readily discoverable, because your account there currently does not have any public recordings (that is, other people need the link to see it). |
好的,我会尝试一下 |
I just wanted to share some insights of @EliahKagan here as they provide an avenue towards attempting a fix:
In summary, assuring that |
Current behavior 😯
Expected behavior 🤔
No response
Git behavior
No response
Steps to reproduce 🕹
No response
The text was updated successfully, but these errors were encountered: