git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git p4 sync not reflecting mail address changes
@ 2019-03-18 10:55 Massimo Burcheri
  2019-03-18 18:02 ` Mazo, Andrey
  0 siblings, 1 reply; 2+ messages in thread
From: Massimo Burcheri @ 2019-03-18 10:55 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git p4 sync not reflecting mail address changes
  2019-03-18 10:55 git p4 sync not reflecting mail address changes Massimo Burcheri
@ 2019-03-18 18:02 ` Mazo, Andrey
  0 siblings, 0 replies; 2+ messages in thread
From: Mazo, Andrey @ 2019-03-18 18:02 UTC (permalink / raw)
  To: massimo.burcheri@gmx.de
  Cc: git@vger.kernel.org, luke@diamand.org, Mazo, Andrey

> 
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-18 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 10:55 git p4 sync not reflecting mail address changes Massimo Burcheri
2019-03-18 18:02 ` Mazo, Andrey

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).