stash icon indicating copy to clipboard operation
stash copied to clipboard

Many git commands fail after deletions

Open controversial opened this issue 9 years ago • 5 comments

If I delete files locally, but don't call git rm <file> for each one, many many commands then fail. Without manually doing a git rm <file> for each one, I get errors with checkout, status, and more. In standard git, removing files is automatically reflected.

controversial avatar Feb 12 '16 14:02 controversial

yes. I need to restructure some things to fix this, and probably review how git behaves. For instance, if you delete a file, it does not automatically get deleted from the index (there are some special switches that perhaps do this), but i agree we should be getting errors.
as a temporary measure, touch file will at least get you past the error.

jsbain avatar Feb 13 '16 05:02 jsbain

Thanks. This works. Look forward to a fix.

On Sat, Feb 13, 2016 at 12:45 AM jsbain [email protected] wrote:

yes. I need to restructure some things to fix this, and probably review how git behaves. For instance, if you delete a file, it does not automatically get deleted from the index (there are some special switches that perhaps do this), but i agree we should be getting errors.

as a temporary measure, touch file will at least get you past the error.

— Reply to this email directly or view it on GitHub https://github.com/ywangd/stash/issues/159#issuecomment-183599459.

controversial avatar Feb 13 '16 15:02 controversial

This was a problem in dulwich. We rely on dulwich for a lot. So there is sort of this trade of whether to try to fix dulwich, go the pull request route, etc, or try to have workarounds.

jsbain avatar Feb 13 '16 16:02 jsbain

Right. Makes sense.

On Sat, Feb 13, 2016 at 11:06 AM jsbain [email protected] wrote:

This was a problem in dulwich. We rely on dulwich for a lot. So there is sort of this trade of whether to try to fix dulwich, go the pull request route, etc, or try to have workarounds.

— Reply to this email directly or view it on GitHub https://github.com/ywangd/stash/issues/159#issuecomment-183695153.

controversial avatar Feb 13 '16 16:02 controversial

Noticed git.py in stash used a fork of dulwich. Just checking to see if the root issue was fixed in the dulwich master. Thanks!

khilnani avatar Aug 14 '17 02:08 khilnani