-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 status
reports (non-existent) modifications after git stash push
#1437
Comments
This happens to me as well. However, strangely enough "git checkout -- ." works as expected (as reported in issue #1438). It's quite simple to reproduce. Do some kind of change, execute "git stash". The changes will be stashed, but git status still shows the files as changed. When doing a diff it shows no changes though. To make them not occur in "git status", I just execute "git checkout -- .", which seems to put the files in the correct state, and everything works as expected. The stash is also correct, so it's possible to do a git stash apply and get the changes back. |
I'm running |
For what it's worth (if I did this correctly),
|
@boogisha excellent analysis, thank you! If nobody beats me to it, I hope to get to this ticket by this coming Tuesday. |
A set of regressions introduced by patches intended to speed up `reset` and `checkout` was fixed (issues [#1437](git-for-windows/git#1437), [#1438](git-for-windows/git#1438), [#1440](git-for-windows/git#1440) and [#1442](git-for-windows/git#1442). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Setup
defaults?
to the issue you're seeing?
Nothing special that I can think of at the moment.
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
File "test.txt" shouldn't be listed as "modified" in
git status
output aftergit stash push
.git diff
correctly shows no differences.git status
reports file "test.txt" as modified.This also causes commands like
git rebase -i --autostash
to fail, as "modifications"(?) seem to be reported inside the working tree even after stashing.At first, I thought it may be core Git bug, but testing on Ubuntu with v2.16.0 worked as expected (using the same test script provided above):
On the other hand, this is what Git for Windows v2.16.0(2) does:
Please let me know if I can be of more help, might be providing some more data.
The text was updated successfully, but these errors were encountered: