Skip to content
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

Range select -> stage fails when deleted file is already staged #3603

Open
brandondong opened this issue May 26, 2024 · 0 comments · May be fixed by #3631
Open

Range select -> stage fails when deleted file is already staged #3603

brandondong opened this issue May 26, 2024 · 0 comments · May be fixed by #3631
Labels
bug Something isn't working

Comments

@brandondong
Copy link
Contributor

brandondong commented May 26, 2024

Describe the bug

Range select -> stage fails when deleted file is already staged.

To Reproduce
Steps to reproduce the behavior:

git init
echo "A" > file-a
git add -A
git commit -m "commit 1"
rm file-a
git add file-a
echo "B" > file-b
lazygit

Range select both files (shift + down arrow) and then hit space. The operation fails.

Expected behavior

file-b should become staged and no change happens to the status of file-a

Screenshots

image

Version info:

> lazygit --version
commit=v0.41.0, build date=2024-03-23T09:30:36Z, build source=binaryRelease, version=0.41.0, os=linux, arch=amd64, git version=2.45.1
> git --version
git version 2.45.1

Additional context

Reproducible on latest master.

@brandondong brandondong added the bug Something isn't working label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant