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
Fix handling of blob mode change #201
Conversation
@carlosmn This covers the TreeToTreeDiff and the Status related issues we discussed in #196. However, I have very mixed feelings about this. See below. Pros:
Cons:
HeadBangings:
/cc @arrbee |
https://github.com/dahlbyk/libgit2sharp/compare/fix/issue196 I didn't look too closely at the tests, but I think this cleans up |
@dahlbyk Thanks for these. They indeed make the code cleaner! I've pushed them on vNext and rebased this PR on top on them. Below the current build logs with the updated code:
|
Rather than checking for Linux explicitly, try switching on |
Are you able to reproduce the amd64 failure locally? I'm not sure how to switch the build target... |
@dahlbyk unfortunately I'm running a x86 box :-/ |
I'm on amd64 - how do I switch build target? |
What happens when you run build.libgit2sharp.cmd? What does msbuild say/log about the bitness of the hosting process? |
Regardless of 32- or 64-bit host, I get |
Hmmm. That's very weird. Could you try to update the content of the This should "force" the build in x64 mode. In the build log, xUnit should also be run in 64bits mode and display something like |
From what I understood of this comment, the behavior depends on whether the platform supports symlinks or not, this is why I was explicitly checking the hosting platform. I may be missing something, though? What are you aiming at? |
The only
At minimum, tweaking the tests will let us see better what's really happening on amd64 - currently we know the counts are wrong but that's it. |
Got it - using the Framework64 version of msbuild does the trick (and tests fail). Will let you know what I can figure out... |
https://github.com/dahlbyk/libgit2sharp/compare/fix/issue196
|
I can't help but feel this is very unexpected. As far as I know the symlink feature does not depend on the bitness of the platform. @arrbee @aroben We'd definitely need some help here. Any advice? If I ported the test to clar would one of you agree to test drive it (and potentially debug it) in a Win64 environment? |
@carlosmn ran the C version of |
Closing this in favor of #1004 |
Fix #196