# Fix staging/unstaging hunks remotely \(\#28560\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/353ae2335b8b72fd29ac099e90455477c98c6e38)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 353ae2335b8b72fd29ac099e90455477c98c6e38

Requested commit: 353ae2335b8b72fd29ac099e90455477c98c6e38

Commit: 353ae2335b8b72fd29ac099e90455477c98c6e38

Tree: ba2602c3ad56057fabc3a421236c6898185f700f

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix staging/unstaging hunks remotely (#28560)

Fixes a regression introduced in
https://github.com/zed-industries/zed/pull/28377 where the pending hunks
didn't get cleared properly when staging/unstaging hunks remotely. I
didn't add new tests, because the fix was to simplify some code.

Release Notes:

- N/A
```

## Parents

- [ad39d3226f269808c4cd4eb236666fa42f52cb5a](https://git.cafe/gitcafe/zed/commit/ad39d3226f269808c4cd4eb236666fa42f52cb5a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/353ae2335b8b72fd29ac099e90455477c98c6e38?format=markdown)
