Hopefully this fixes the working dir setup on teamcity.codebetter.com!
Switch to using LibGit2Sharp.Blob for Copy(), and begin adding explicit references, so we can swap out parts of GitSharp with LibGit2Sharp as we go.