Skip to content

Commit 3554fcb

Browse files
committed
Added platform dependent conditionals around git path variable.
1 parent 3d05f63 commit 3554fcb

File tree

1 file changed

+4
-0
lines changed
  • Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor

1 file changed

+4
-0
lines changed

Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ namespace CandyCoded.GitStatus
1212
public static class Git
1313
{
1414

15+
#if UNITY_EDITOR_WIN
16+
public static string GitPath => "C:\\Program Files\\Git\\cmd\\git.exe";
17+
#else
1518
public static string GitPath => "/usr/local/bin/git";
19+
#endif
1620

1721
public static string Branch()
1822
{

0 commit comments

Comments
 (0)