Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 88c114e

Browse files
CloneUrl and Name can be set to null because the property getter will lazily load the data
1 parent 1aaf329 commit 88c114e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ private void UpdateLocalBranches()
462462

463463
private void ClearRepositoryInfo()
464464
{
465-
CloneUrl = new UriString(CurrentRemote.Value.Url);
466-
Name = CloneUrl.RepositoryName;
465+
CloneUrl = null;
466+
Name = null;
467467
}
468468

469469
private void RepositoryManager_OnLocalBranchRemoved(string name)

0 commit comments

Comments
 (0)