Skip to content

Popping stash disallowed with staged changes #1724

@eclairevoyant

Description

@eclairevoyant

Describe the bug

Popping a stash with anything staged throws an error:

git error:1 uncommitted changes exist in the index; class=Stash (19); code=Uncommitted (-22)

To Reproduce
Steps to reproduce the behavior:

  1. Add any files to stash
  2. Stage any changes
  3. Attempt to pop stash

Expected behavior

No error should occur, and staged changes should stay staged after popping, because git stash pop works this way.

Screenshots
If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • OS/Distro + Version: Linux (stable version from nixpkgs, git version built from source)
  • GitUI Version 0.22.1, I also tested with latest git commit
  • Rust version: unknown for nixpkgs version, 1.70.0 for the latest git commit version

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions