8000 Allow obsolete LibGit2Sharp methods to be called · github/VisualStudio@d354ed4 · GitHub
[go: up one dir, main page]

Skip to content
8000
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit d354ed4

Browse files
committed
Allow obsolete LibGit2Sharp methods to be called
Hack to allow methods that are obsolete in LibGit2Sharp 0.23.1 to be called. #pragma warning disable 0612, 0618 This is a temparary workaround.
1 parent fe3fc19 commit d354ed4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/GitHub.App/Services/GitClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public GitClient(IGitHubCredentialProvider credentialProvider)
3636
};
3737
}
3838

39+
#pragma warning disable 0612, 0618
3940
public Task Pull(IRepository repository)
4041
{
4142
Guard.ArgumentNotNull(repository, nameof(repository));

src/GitHub.App/Services/PullRequestService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public IObservable<Unit> Pull(ILocalRepositoryModel repository)
101101
});
102102
}
103103

104+
#pragma warning disable 0612, 0618
104105
public IObservable<Unit> Push(ILocalRepositoryModel repository)
105106
{
106107
return Observable.Defer(async () =>
@@ -165,6 +166,7 @@ public IObservable<string> GetDefaultLocalBranchName(ILocalRepositoryModel repos
165166
});
166167
}
167168

169+
#pragma warning disable 0612, 0618
168170
public IObservable<BranchTrackingDetails> CalculateHistoryDivergence(ILocalRepositoryModel repository, int pullRequestNumber)
169171
{
170172
return Observable.Defer(async () =>

src/GitHub.Exports/Models/BranchModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public BranchModel(Octokit.Branch branch, IRepositoryModel repo)
2525
Id = String.Format(CultureInfo.InvariantCulture, "{0}/{1}", Repository.Owner, Name);
2626
}
2727

28+
#pragma warning disable 0612, 0618
2829
public BranchModel(LibGit2Sharp.Branch branch, IRepositoryModel repo)
2930
{
3031
Extensions.Guard.ArgumentNotNull(branch, nameof(branch));

0 commit comments

Comments
 (0)
0