# git: Use correct file mode when staging \(\#41900\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 425d4c73f3fbf4362520d2ea2c1205eeb948b31d

Requested commit: 425d4c73f3fbf4362520d2ea2c1205eeb948b31d

Commit: 425d4c73f3fbf4362520d2ea2c1205eeb948b31d

Tree: 3fa7325e9c27d0b03a2f551d8bc67916f0577bc4

Author: Bhuminjay Soni

Committer: GitHub

## Message

```
git: Use correct file mode when staging (#41900)

Closes #28667

Release Notes:

- Fixed git not preserving file mode when committing. Now if an input file is executable it will be preserved when committed with Zed.

---------

Signed-off-by: 11happy <soni5happy@gmail.com>
Signed-off-by: 11happy <bhuminjaysoni@gmail.com>
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
```

## Parents

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

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