Skip to content

Commit

Permalink
Removed platform dependent compilation statement in favor of runtime …
Browse files Browse the repository at this point in the history
…logic.
  • Loading branch information
neogeek committed Jan 14, 2020
1 parent eea2e8c commit c3e2379
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using UnityEngine;

namespace CandyCoded.GitStatus
{

public static class Git
{

#if UNITY_EDITOR_WIN
private static string GitPath => @"C:\Program Files\Git\bin\git.exe";
#else
private static string GitPath => "/usr/local/bin/git";
#endif
private static string GitPath => SystemInfo.operatingSystemFamily.Equals(OperatingSystemFamily.Windows)
? @"C:\Program Files\Git\bin\git.exe"
: "/usr/local/bin/git";

private static string RepoPath => $"{Environment.CurrentDirectory}{Path.DirectorySeparatorChar}";

Expand Down

0 comments on commit c3e2379

Please sign in to comment.