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

Commit 23fcbfd

Browse files
committed
Fix repository initialization
1 parent 87c7109 commit 23fcbfd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ public ITask InitializeRepository()
104104
}))
105105
.Then(GitClient.Add(filesForInitialCommit))
106106
.Then(GitClient.Commit("Initial commit", null))
107-
.Then(RestartRepository)
107+
.Then(_ =>
108+
{
109+
Environment.InitializeRepository();
110+
RestartRepository();
111+
})
108112
.ThenInUI(InitializeUI);
109113
return task;
110114
}

src/UnityExtension/Assets/Editor/GitHub.Unity/ApplicationManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ protected override void SetupMetrics()
2929
protected override void InitializeUI()
3030
{
3131
Logger.Trace("Restarted {0}", Environment.Repository);
32+
EnvironmentCache.Instance.Flush();
3233
ProjectWindowInterface.Initialize(Environment.Repository);
3334
var window = Window.GetWindow();
3435
if (window != null)

0 commit comments

Comments
 (0)