Git Product home page Git Product logo

Comments (6)

ivan-danilov avatar ivan-danilov commented on May 22, 2024

I've just checked when dev-1 and dev-2 has same emails - and it worked as expected (dev-2's push is successfull answered 'Everything up-to-date'). So the issue is actually that commits originated from TFS gets author's email as of current user doing pulling/fetching.

from git-tfs.

ivan-danilov avatar ivan-danilov commented on May 22, 2024

It seems I was in a hurry when suggest this. Making stub email won't help much. I wrote a blog post about the reasons:
http://sparethought.wordpress.com/2011/06/16/first-git-tfs-usage-problems/

Probably it is worth mentioning in the wiki so others could read this beforehand. In any case I'm leaving this issue open just to share info. You're free to close it as soon as you think it is reasonable.

from git-tfs.

spraints avatar spraints commented on May 22, 2024

Huh. I hadn't noticed that before. I had tried to get the commits to be exactly identical, no matter when or where they're created (assuming the same remote config). So, basically, GroupSecurityService.ReadIdentity (used by GetIdentity) is always returning the current user's email (or null)? bah. That really bites.

I think a fix for this would be to make sure that the author email is set to something non-null in TfsChangeset.MakeNewLogEntry.

from git-tfs.

ivan-danilov avatar ivan-danilov commented on May 22, 2024

Well, the only viable way I see now is to provide some sort of mapping between TFS' accounts and git's. And when pull/checkin is performed - commits to TFS should go with TFS' account and back with git's.

Just setting something constant non-null is not enough (basically it is 'Second attempt' section of my post).

from git-tfs.

spraints avatar spraints commented on May 22, 2024

I don't care that it makes the email match what the person is using in git. I mean, it would be nice, but I'd be happiest with usera and userb being able to fetch identical git commits from a given TFS changeset.

After looking through some more git-tfs repos that I have, it looks like there are some that have the right email address for everyone, and some that don't. So I'm not entirely sure what's going on.

I assume your TFS is hooked up to AD. Do users have email addresses stored in their AD records? I think that's where TFS tries to get email addresses.

from git-tfs.

ivan-danilov avatar ivan-danilov commented on May 22, 2024

I'd be happiest with usera and userb being able to fetch identical git commits from a given TFS changeset.

Exactly. I just don't know a way to tell git not perform hashing of emails. Otherwise I'd have already done this :)
So trying to make them at least match.

We have VPN tunnel to TFS server. From user account spelling it seems it belongs to some domain (i.e. it has format aaa\bbb), but my working box tied to absolutely different domain than TFS accounts are.

P.S. Offtopic slightly. I don't know if you see/remember of closed issue51 branch :) I tested it half of a day today and it seems ok (just not forget to apply patch provided in the comments or otherwise implement void UpdateRef(string commitHash, long changesetId))

from git-tfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.