From 75ae7f95d566368c7d4c8cb0264c1e403fcabb90 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Tue, 13 Sep 2011 16:59:28 +0200 Subject: Defer loading of Tag.Annotation and Tag.Target properties --- LibGit2Sharp/CommitCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LibGit2Sharp/CommitCollection.cs') diff --git a/LibGit2Sharp/CommitCollection.cs b/LibGit2Sharp/CommitCollection.cs index baa11b00..bf87512e 100644 --- a/LibGit2Sharp/CommitCollection.cs +++ b/LibGit2Sharp/CommitCollection.cs @@ -315,7 +315,7 @@ namespace LibGit2Sharp if (obj is TagAnnotation) { - return DereferenceToCommit(((TagAnnotation)obj).TargetId.Sha); + return DereferenceToCommit(((TagAnnotation)obj).Target.Sha); } throw new InvalidOperationException(); @@ -343,7 +343,7 @@ namespace LibGit2Sharp if (identifier is TagAnnotation) { - yield return DereferenceToCommit(((TagAnnotation)identifier).TargetId.Sha); + yield return DereferenceToCommit(((TagAnnotation)identifier).Target.Id.Sha); yield break; } -- cgit v1.2.3