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

Commit f71ded1

Browse files
Preventing unintentional call to git log
1 parent b830e74 commit f71ded1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,12 @@ private void RefreshLog()
205205
{
206206
if (GitClient != null)
207207
{
208-
GitClient.Log()
209-
.ThenInUI((success, log) => { if (success) OnLogUpdate(log); })
210-
.Start();
208+
if (Repository != null && Repository.CurrentRemote.HasValue)
209+
{
210+
GitClient.Log().ThenInUI((success, log) => {
211+
if (success) OnLogUpdate(log);
212+
}).Start();
213+
}
211214
}
212215
}
213216

0 commit comments

Comments
 (0)