-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Terminal run Git command can be "corrupted" if there is previous text waiting in the terminal #2664
Comments
@fterradev The issue here was that it looks like you typed "git checkout" in the GitLens terminal (but never hit enter), and then want GL executed the reset command, it tacked it on to the existing "git checkout" text. GitLens will now remove/overwrite any existing input text in the terminal. |
Oh, ok, I didn't realized it. Yes, I just reproduced it by typing something in the terminal. Thanks! |
Hey, I tested it didn't work... It seems like the
|
And also if I have something typed in before like "foo", I get an error similar to the original one:
(Note "foo" is still there) Even though I see those added codes to supposedly remove any text on the current line in the terminal when I first use GitLens and there was no GitLens terminal opened yet. But it also fail due to having that prefix "usr/bin/" as I said in the previous message.
|
Unfortunately I can't find a solution that works across OSs and across shells. |
This same issue started biting me yesterday, experiencing the exact same behaviour as @fterradev. Not sure I understand why |
Are you still seeing this in the latest pre-release? I thought I fixed this last night. |
Good call, my extension hadn't updated 🤦🏻 . Tested this morning, it's working again! Thanks! |
@eamodio Never mind. I consider it was mostly an error of mine as a user. Aside from that, I don't know if it was intentional to move from using simply the |
I don't know if you want to close as completed or close as not planned. I'll defer to you. Thanks for the support. |
Description
On a macOS Monterey (12.6.3)
Expect result:
The reset command works and the branch gets reset to the selected commit.
Actual result:
The reset command fails.
Workaround: removing keyword 'checkoutgit' from the command seems to fix the issue.
GitLens Version
13.5.0
VS Code Version
Version: 1.78.0 (Universal)
Commit: 252e5463d60e63238250799aef7375787f68b4ee
Date: 2023-05-03T20:11:00.813Z
Electron: 22.4.8
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No
Git Version
git version 2.37.1 (Apple Git-137.1)
Logs, Screenshots, Screen Captures, etc
No response
The text was updated successfully, but these errors were encountered: