# git: Fix add safe directory button doing nothing \(\#58705\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e5c370b3b2436b227bf7feca005bdce1aeaff63f

Requested commit: e5c370b3b2436b227bf7feca005bdce1aeaff63f

Commit: e5c370b3b2436b227bf7feca005bdce1aeaff63f

Tree: 3656ce5fa3e70955ac51f3041664b045b7e27d7f

Author: Cole Miller

Committer: GitHub

## Message

```
git: Fix add safe directory button doing nothing (#58705)

We had a nested spawn that was disguising the fact that the actual
`git_config` task was being dropped immediately instead of detached.
This only seems to cause problems in release builds due to timing
issues.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed a bug where clicking the button to trust a git repository would
do nothing.
```

## Parents

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

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