Bug 249623

Summary: [git-webkit] Ignores global git configuration
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Michael Catanzaro 2022-12-19 17:23:53 PST
This was really confusing:

$ git-webkit cherry-pick 256486@main 
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'mcatanzaro@chargestone-cave.(none)')

But I already had configured them:

$ git config user.email
mcatanzaro@redhat.com
$ git config user.name
Michael Catanzaro

Problem is, git-webkit is somehow looking only at the *local* config, and is ignoring the global config. I had global config only and no local config. To fix it, I did this:

$ git config user.email mcatanzaro@redhat.com
$ git config user.name Michael Catanzaro

That worked, but it's redundant and shouldn't be needed unless there is some strong reason for ignoring the global config.

I also needed to copy my editor config as well:

$ git config core.editor vim
Comment 1 Radar WebKit Bug Importer 2022-12-26 17:24:13 PST
<rdar://problem/103716606>