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

Commit 7f0ad64

Browse files
Altering the extension filter in windows
1 parent a7f5516 commit 7f0ad64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,16 @@ private void OnInstallPathGUI()
585585
if (Environment != null)
586586
{
587587
extension = Environment.ExecutableExtension;
588+
if (Environment.IsWindows)
589+
{
590+
extension = extension.TrimStart('.');
591+
}
592+
588593
gitInstallPath = Environment.GitInstallPath;
594+
589595
if (Environment.GitExecutablePath != null)
590596
gitExecPath = Environment.GitExecutablePath.ToString();
591597
}
592-
593598

594599
// Install path
595600
GUILayout.Label(GitInstallTitle, EditorStyles.boldLabel);

0 commit comments

Comments
 (0)