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

Commit a930cb9

Browse files
committed
When Unity restarts the serialized field is null, not empty, which can lead to CurrentDirectory being set to .
1 parent 0b45974 commit a930cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public IEnvironment Environment
5757
unityVersion = Application.unityVersion;
5858
}
5959
environment.Initialize(unityVersion, extensionInstallPath.ToNPath(), unityApplication.ToNPath(), unityAssetsPath.ToNPath());
60-
environment.InitializeRepository(repositoryPath != null ? repositoryPath.ToNPath() : null);
60+
environment.InitializeRepository(!String.IsNullOrEmpty(repositoryPath) ? repositoryPath.ToNPath() : null);
6161
Flush();
6262
}
6363
return environment;

0 commit comments

Comments
 (0)