Comments (6)
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.
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.
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.
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.
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.
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)
- Slow operation, more of a question HOT 4
- StructureMap.StructureMapException: StructureMap Exception Code: 207 HOT 1
- git-tfs was unable to find the root changeset
- Timeouts when I git tfs pull --rebase --debug HOT 1
- Error 200 ok on EnsureAuthenticated
- Wrong branch cloned when several branch names start in the same HOT 4
- Git TFS installation error. HOT 2
- GitTfs-0.32.0.zip file issues HOT 2
- Fails to build—restore not available HOT 1
- Cannot find module './tempdir' issue reported while copying files from staging environment to production HOT 1
- Policy: Internal error in Work Items. Error loading the Work Items policy HOT 2
- How do I retrieve file history after clone? All I see is branch comments. HOT 7
- Adding work items to the export file doesn't work
- git-tfs not showing history showing error,"Please report this case to the git-tfs developers!" HOT 1
- New Release after v0.32.0 HOT 4
- Sudden authentication issue HOT 2
- Export map can't be created, if a TFS changeset shall be assigned to multiple commits
- Wrong branch cloned when several branch names starts in the same
- "git tfs" isn't a command, but "git-tfs" is a command HOT 1
- Error while cloning branches by using command. - git tfs clone https://TFSURL/tfs/defaultcollection/ $/ProjectName/Ressursstyring/src/next . --branches=all HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-tfs.