Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-cmd/tap-new: improve handling of multi-user setups #18909

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Dec 10, 2024

Homebrew largely operates under the model where EUID == Homebrew owner (proxy) and UID == requesting user.

This cross-user model doesn't really work well with brew tap-new which does git commits. This PR fixes it so that it can read the author information of the requesting user.

Known issue (that realistically won't be fixed): on macOS, this will not work with Xcode 14.0 through 14.2. On Linux (or I guess old Homebrew Git installs on macOS too potentially) this will not work with any (potentially distro-patched) system Git <2.39 that have the safe directory changes but didn't backport -c safe.directory support. This however isn't a regression from the previous state where it still didn't work anyway, and can be fixed by using Homebrew git.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks @Bo98!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 10, 2024
Merged via the queue into master with commit 03d29a5 Dec 10, 2024
28 checks passed
@MikeMcQuaid MikeMcQuaid deleted the tap-new-multiuser branch December 10, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants