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

Commit d7a3000

Browse files
Merge branch 'fixes/empty-publish' into fixes/update-after-publish
2 parents a66bd28 + 7cfc51f commit d7a3000

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/HistoryView.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,15 @@ private void MaybeUpdateData()
358358
currentRemoteHasUpdate = false;
359359

360360
var currentRemote = Repository.CurrentRemote;
361-
hasRemote = currentRemote.HasValue;
362-
currentRemoteName = hasRemote ? currentRemote.Value.Name : "placeholder";
361+
if (currentRemote.HasValue && !string.IsNullOrEmpty(currentRemote.Value.name))
362+
{
363+
hasRemote = true;
364+
currentRemoteName = currentRemote.Value.Name;
365+
}
366+
else
367+
{
368+
currentRemoteName = null;
369+
}
363370
}
364371

365372
if (currentStatusHasUpdate)

0 commit comments

Comments
 (0)