# git: Fix spurious file creation when staging \(\#53621\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e6196e2216bf72e4235955e889464330c380530d

Requested commit: e6196e2216bf72e4235955e889464330c380530d

Commit: e6196e2216bf72e4235955e889464330c380530d

Tree: 0304825c5c82280843ee17b17845a907fa9d5679

Author: Neel

Committer: GitHub

## Message

```
git: Fix spurious file creation when staging (#53621)

Related to https://github.com/zed-industries/zed/pull/53484. 

This PR fixes a `--` file being created when staging a hunk.

Release Notes:

- N/A
```

## Parents

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

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