Skip to content

Commit 1700001

Browse files
authored
Merge pull request #20 from CandyCoded/hotfix/escape-path-string
[hotfix] Escape path string.
2 parents d4ce1cd + 425726e commit 1700001

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static void DiscardChanges(string path)
133133
var process = Process.Start(new ProcessStartInfo
134134
{
135135
FileName = GitPath,
136-
Arguments = $"checkout {path}",
136+
Arguments = $@"checkout ""{path}""",
137137
UseShellExecute = false,
138138
RedirectStandardOutput = true,
139139
RedirectStandardError = true,

0 commit comments

Comments
 (0)