Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osx: run postinstall configure cmd as current user
In the macOS installer postinstall script we run the `configure` command to get GCM to configure the current user's credential helper as GCM. However, the postinstall script is often run as root (because that's how `installer` works out of the box), meaning although GCM will be writing to the ~/.gitconfig file, it will be doing so from a process running as root. To avoid having root take ownership of ~/.gitconfig we run `sudo -u` to run the `configure` command as the real user (not root).
- Loading branch information