From bf5e87142c5c719d9469476d00e01c86c4f298fa Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 5 Sep 2016 15:18:26 +0200 Subject: [PATCH] Update octokit to 0.22.0 This fixes #534 via https://github.com/octokit/octokit.net/pull/1411. Previously the request to /site/sha to detect an enterprise instance wasn't getting sent due to octokit's implementation of `RedirectHandler`. --- src/GitHub.App/Api/ApiClient.cs | 4 ++++ submodules/octokit.net | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GitHub.App/Api/ApiClient.cs b/src/GitHub.App/Api/ApiClient.cs index ca6f23970c..39d69e3188 100644 --- a/src/GitHub.App/Api/ApiClient.cs +++ b/src/GitHub.App/Api/ApiClient.cs @@ -257,7 +257,11 @@ public IObservable GetRepositories() public IObservable GetBranches(string owner, string repo) { +#pragma warning disable CS0618 + // GetAllBranches is obsolete, but don't want to introduce the change to fix the + // warning in the PR, so disabling for now. return gitHubClient.Repository.GetAllBranches(owner, repo); +#pragma warning restore } public IObservable GetRepository(string owner, string repo) diff --git a/submodules/octokit.net b/submodules/octokit.net index 95d6511f73..2436b20db9 160000 --- a/submodules/octokit.net +++ b/submodules/octokit.net @@ -1 +1 @@ -Subproject commit 95d6511f73596f67b3c0ff2d4a132d5734e4d57c +Subproject commit 2436b20db91387ab51a5b6456fc1af4aa15fd59d