git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git p4 sync not reflecting mail address changes

From
MAMazo, Andrey <amazo@checkvideo.com>
Date
Mar 18, 2019, 18:02 UTC
Message-ID
<20190318180207.11604-1-amazo@checkvideo.com>
In-Reply-To
<273b5fcdf5a59409f1533c2f8a4d71ed99750eef.camel@gmx.de>
Show 21 quoted lines
> 
> Hello,
> 
> we are periodically doing a 'git p4 sync' on a p4 clone that was initially
> created by 'git p4 clone --bare //DEPOT'. Now on P4 side the mail addresses have
> changed, but git still uses the old addresses.
> p4 users already shows the new addresses but new changes in the git log are
> showing the old addresses.
> 
> There is
> https://git-scm.com/docs/git-p4#Documentation/git-p4.txt-git-p4mapUser
> to remap users but afaik there is no mapping at all right now.
> 
> I tried
> 
>    mapUser = SomeUser = Some User <some.user@local>
> 
> but also with this configuration new changes synced are showed as
> some.user@oldlocal.
> 
> We are not submitting back to P4, this is just a readonly git p4 clone.

I've just run into the same problem today. You need to delete (or rename) "$HOME/.gitp4-usercache.txt" (on Windows, it's under %USERPROFILE% as far as I can tell) and repeat clone/sync.

Hope, this helps.

-- Andrey

Previous: Massimo Burcheri
Message 2 of 2 in “git p4 sync not reflecting mail address changes”
  1. Massimo BurcheriMar 18, 2019
  2. Mazo, AndreyMar 18, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.