diff --git a/LibGit2Sharp.Tests/SmartSubtransportFixture.cs b/LibGit2Sharp.Tests/SmartSubtransportFixture.cs index d55785baa..8e6aef5c6 100644 --- a/LibGit2Sharp.Tests/SmartSubtransportFixture.cs +++ b/LibGit2Sharp.Tests/SmartSubtransportFixture.cs @@ -19,8 +19,8 @@ public class SmartSubtransportFixture : BaseFixture (sender, certificate, chain, errors) => { return true; }; [Theory] - [InlineData("http", "http://github.com/libgit2/TestGitRepository")] - [InlineData("https", "https://github.com/libgit2/TestGitRepository")] + [InlineData("http", "http://bitbucket.org/edwardthomson/TestGitRepository/")] + [InlineData("https", "https://bitbucket.org/edwardthomson/TestGitRepository/")] public void CustomSmartSubtransportTest(string scheme, string url) { string remoteName = "testRemote"; @@ -259,6 +259,8 @@ public override int Write(Stream dataStream, long length) private static HttpWebRequest CreateWebRequest(string endpointUrl, bool isPost, string contentType) { + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; + HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(endpointUrl); webRequest.UserAgent = "git/1.0 (libgit2 custom transport)"; webRequest.ServicePoint.Expect100Continue = false; diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj index 34fb0d630..0037b70e0 100644 --- a/LibGit2Sharp/LibGit2Sharp.csproj +++ b/LibGit2Sharp/LibGit2Sharp.csproj @@ -1,6 +1,6 @@  - + Debug AnyCPU @@ -392,6 +392,6 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + diff --git a/LibGit2Sharp/packages.config b/LibGit2Sharp/packages.config index 72b9ea358..796faed60 100644 --- a/LibGit2Sharp/packages.config +++ b/LibGit2Sharp/packages.config @@ -1,4 +1,4 @@  - +