{"thread":{"id":"50770","subject":"git p4 sync not reflecting mail address changes","startedAt":"2019-03-18T12:13:45Z","lastAt":"2019-03-18T18:02:32Z","messageCount":2,"participants":["Massimo Burcheri","Mazo, Andrey"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"371808","messageId":"273b5fcdf5a59409f1533c2f8a4d71ed99750eef.camel@gmx.de","threadId":"50770","inReplyTo":null,"subject":"git p4 sync not reflecting mail address changes","fromName":"Massimo Burcheri","fromEmail":"massimo.burcheri@gmx.de","sentAt":"2019-03-18T10:55:48Z","receivedAt":"2019-03-18T12:13:45Z","isPatch":false,"sender":{"key":"massimo.burcheri@gmx.de","avatar":null},"body":"Hello,\n\nwe are periodically doing a 'git p4 sync' on a p4 clone that was initially\ncreated by 'git p4 clone --bare //DEPOT'. Now on P4 side the mail addresses have\nchanged, but git still uses the old addresses.\np4 users already shows the new addresses but new changes in the git log are\nshowing the old addresses.\n\nThere is\nhttps://git-scm.com/docs/git-p4#Documentation/git-p4.txt-git-p4mapUser\nto remap users but afaik there is no mapping at all right now.\n\nI tried\n\n   mapUser = SomeUser = Some User <some.user@local>\n\nbut also with this configuration new changes synced are showed as \nsome.user@oldlocal.\n\nWe are not submitting back to P4, this is just a readonly git p4 clone.\n\nBest regards,\nMassimo\n"},{"id":"371834","messageId":"20190318180207.11604-1-amazo@checkvideo.com","threadId":"50770","inReplyTo":"273b5fcdf5a59409f1533c2f8a4d71ed99750eef.camel@gmx.de","subject":"Re: git p4 sync not reflecting mail address changes","fromName":"Mazo, Andrey","fromEmail":"amazo@checkvideo.com","sentAt":"2019-03-18T18:02:16Z","receivedAt":"2019-03-18T18:02:32Z","isPatch":false,"sender":{"key":"amazo@checkvideo.com","avatar":null},"body":"> \n> Hello,\n> \n> we are periodically doing a 'git p4 sync' on a p4 clone that was initially\n> created by 'git p4 clone --bare //DEPOT'. Now on P4 side the mail addresses have\n> changed, but git still uses the old addresses.\n> p4 users already shows the new addresses but new changes in the git log are\n> showing the old addresses.\n> \n> There is\n> https://git-scm.com/docs/git-p4#Documentation/git-p4.txt-git-p4mapUser\n> to remap users but afaik there is no mapping at all right now.\n> \n> I tried\n> \n>    mapUser = SomeUser = Some User <some.user@local>\n> \n> but also with this configuration new changes synced are showed as\n> some.user@oldlocal.\n> \n> We are not submitting back to P4, this is just a readonly git p4 clone.\nI've just run into the same problem today.\nYou need to delete (or rename) \"$HOME/.gitp4-usercache.txt\"\n(on Windows, it's under %USERPROFILE% as far as I can tell)\nand repeat clone/sync.\n\nHope, this helps.\n\n--\nAndrey\n"}]}