threads / discuss / 50770

git p4 sync not reflecting mail address changes

Subject: git p4 sync not reflecting mail address changes

## tl;dr

2 messages between Mar 18, 2019 and Mar 18, 2019.

replies: 1people: 2as markdown or json

Massimo Burcheri· Mar 18, 2019, 10:55 UTC · lore
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.

Best regards, Massimo

Mazo, Andrey· Mar 18, 2019, 18:02 UTC · re: Massimo Burcheri · lore

Re: git p4 sync not reflecting mail address changes

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

← back to recent threads