Skip to content

Commit 3ba8e0c

Browse files
committed
Switch to using git path from settings.
1 parent ab0b30f commit 3ba8e0c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Scripts/CustomEditor/Git.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using System.IO;
88
using System.Threading.Tasks;
99
using UnityEditor;
10-
using UnityEngine;
1110

1211
namespace CandyCoded.GitStatus
1312
{
@@ -19,9 +18,7 @@ public static class Git
1918
static Git()
2019
{
2120

22-
GitPath = SystemInfo.operatingSystemFamily.Equals(OperatingSystemFamily.Windows)
23-
? @"C:\Program Files\Git\bin\git.exe"
24-
: "/usr/local/bin/git";
21+
GitPath = GitSettings.GitPath;
2522

2623
RepoPath = $"{Environment.CurrentDirectory}{Path.DirectorySeparatorChar}";
2724

0 commit comments

Comments
 (0)