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

git: do not overwrite system-wide gitconfig, when adding configuration for the osxkeychain credential helper #13259

Merged
merged 1 commit into from Dec 7, 2021

Conversation

herbygillot
Copy link
Member

@herbygillot herbygillot commented Dec 6, 2021

Do not overwrite the system-wide gitconfig when adding configuration for the osxkeychain credential helper

If the gitconfig does not exist, then it will be created. But if it does
exist, then the file will be checked to see whether it already contains the
desired config, and if it doesn't, the configuration will be appended to the
already existing file.

Fixes: https://trac.macports.org/ticket/63953

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -d install?
  • tested basic functionality of all binary files?

@macportsbot
Copy link

Notifying maintainers:
@ci42 for port git.

@macportsbot macportsbot added by: member Created by a member with commit rights maintainer maintainer: open Affects an openmaintainer port labels Dec 6, 2021
…tion for the osxkeychain credential helper

If the gitconfig does not exist, then it will be created. But if it *does*
exist, then the file will be checked to see whether it already contains the
desired config, and if it doesn't, the configuration will be appended to the
already existing file.

Fixes: https://trac.macports.org/ticket/63953
@mascguy mascguy changed the title git: do not overwrite the system-wide gitconfig when adding configura… git: do not overwrite system-wide gitconfig, when adding configuration for the osxkeychain credential helper Dec 7, 2021
@mascguy
Copy link
Member

mascguy commented Dec 7, 2021

LGTM. And this will certainly be appreciated by users who rely on customization to the system config.

Great work Herby!

@mascguy mascguy merged commit 69b7650 into macports:master Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
by: member Created by a member with commit rights maintainer: open Affects an openmaintainer port maintainer
4 participants