New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to clone repository using git-tfs 0.17 #330
Comments
Can you try to give us the debug trace using the option And which version of TFS do you use? If you could get the sources and debug to give us better informations, it will be perfect... |
We're using TFS 2012 - v11.0.51106.1. The particular collection I'm trying to work with (DefaultCollection) has been created using a RC version of TFS 2012, and upgraded several times. We also have a different collection on the same server that has been migrated from TFS 2010, if it matters. The debug trace output is below, hope it helps.
|
Ok. I have reproduce the problem. And find the bug (a return missing). |
And thank you for being so prompt in addressing this! |
If you could test this version to confirm the correction, it will be very kind : |
Looks like I'm unable to build the solution - I don't have the necessary assembly references for the GitTfs.Vs2010 and GitTfs.Vs2008 projects, so I can't test this. |
Go into the build configuration and disable the 2008 and 2010 builds. |
Yeah, do that. As long as one of the GitTfs.Vs* projects builds, you can run git-tfs, even though VS will tell you that you can't. The project is set up so that GitTfs can have just one distribution, and it figures out at runtime which version of TFS it should use. (The alternative is shipping several versions of the product, one for each supported TFS.) The thing you ran into comes up pretty frequently, and I'd like to have a better way to document it, so that anyone who tries to start coding on GitTfs doesn't think they've hit a wall, when they really haven't. |
@vladiliescu - 0.17.1 is on git-tfs.com. Can you try it and see if clone is fixed for you? |
@spraints, @sc68cal I had tried unloading the 2008/2010 projects from the build, and running git tfs with only the Vs11 reference, but it complained that it couldn't find the assemblies. I also tried replacing them with the ones from v0.17 but that didn't work either, so that's when I gave up. Anyways, I've tried running v0.17.1 and it still complains about being too high in the repository, but then it goes on and retrieves the changesets.
|
It's normal that it complains because your are cloning the whole repository which is not what git-tfs expect since there is a branch support in git-tfs. This warning is here to prevent the fact that someone clone the whole repository, then want to work whith branches and will be stuck. So we ask TFS for branches and display it to the user! That's because, since TFS 2010, a repository is supposed to be architectured like that (but TFS constrains not enough so it's difficult to have a unique pattern across all repositories!) : And if you follow this pattern, git-tfs tell you that probably it's a better idea to clone one of the But the most important is that it still permit to clone the whole repository (for project not following this pattern) and do it without crash ;) |
Ah, I see - the project does indeed have one branch and I was trying to clone the whole repository. However, the branches suggested by git-tfs have nothing to do with the project I'm working on (they even belong to two other separate projects), so I ignored the warning since it didn't make any sense to me. Are you saying that this is another bug? |
perhaps :( However, the branches suggested by git-tfs have nothing to do with the project I'm working on (they even belong to two other separate projects), so I ignored the warning since it didn't make any sense to me. Except if we failed somewhere, we ask TFS to give us the list of the branches and display just the ones that have no parents. That's the way we use to return only the trunks. In my example, I'm interested if you say that you've got a branch that you think is a "trunk" (not a branched one, so without parent) and that was not displayed in the list of the branches. |
Created issue #335 with more details about my scenarios. |
As the title says, I've upgraded to v.017 today and clone doesn't seem to work anymore. Running git tfs clone gives me the following output
Rolling back to v0.16.1 fixed the issue. Also, I'm running git v1.8.1.msysgit.1.
The text was updated successfully, but these errors were encountered: