-
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
Git stash push error #2784
Comments
I have experienced the same problem when stashing untracked files.
Untracked files are not added to the stash but are deleted. Extension version: v14.0.1 |
I am unable to reproduce this. What version of Git are you using? @ahmedrafayat are you also seeing this issue when attempting to stash all changes when there is an untracked file or are you doing anything different? Also, can either of you please enable debug logging by running from GitLens: Enable Debug Logging from the Command Palette (F1 or ctrl/cmd+shift+p). This will enable logging to the GitLens and GitLens (Git) channel in the Output pane. Once enabled, please reproduce the issue, and attach the log from the both GitLens and GitLens (Git) channels. |
This issue needs more information and has not had recent activity. Please provide the missing information or it will be closed in 7 days. Thanks! |
I can't reproduce this either -- please provide the request information here: #2784 (comment) |
Latest git version, happens to me when stashing tracked files and untracked files at the same time. Stashing just untracked or just tracked works fine. Also doesn't happen when staging the files first. Here's the debug logs
edit: in these logs morph.ts was untracked, package.json was tracked |
Thanks for the logs -- it seems to only be reproducible if you pick the "Keep staged" option. We will look into that -- thanks! |
I am having this happen with every stash that contains new (i.e. untracked) files. it does not matter if the stash is staged or not |
|
I've just started getting this error when attempting to stash tracked and untracked files together. I don't think this has been a problem before. OS: Darwin arm64 21.6.0 |
I also started getting the warning lately. I do not get it when trying to stash files that are staged though. Vs Code: 1.85.0, Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c |
I believe I've resolved the issue here, can you please verify this fix in tomorrow's ( You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view. |
Just checked the pre-release version, looks fixed, thank you! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Type: Bug
I am getting this type of error everytime I create a stash. The stash is still created but this error shows.
[2023-07-02 16:00:24.887] Push Stash
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false stash push -u -k -m flags api service --pathspec-from-file=- --pathspec-file-nul
error: pathspec ':(,prefix:0)src/common/flags_api_service.py' did not match any file(s) known to git
Extension version: 14.0.1
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:58:33.551Z)
OS version: Darwin arm64 22.5.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: