This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
UnityExtension/Assets/Editor/GitHub.Unity Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,9 @@ public ITask InitializeRepository()
8080 var targetPath = NPath . CurrentDirectory ;
8181
8282 var unityYamlMergeExec = Environment . UnityApplication . Parent . Combine ( "Tools" , "UnityYAMLMerge" ) ;
83- var yamlMergeCommand = $@ "'{ unityYamlMergeExec } ' merge -p ""$BASE"" ""$REMOTE"" ""$LOCAL"" ""$MERGED""";
83+ var yamlMergeCommand = Environment . IsWindows
84+ ? $@ "'{ unityYamlMergeExec } ' merge -p ""$BASE"" ""$REMOTE"" ""$LOCAL"" ""$MERGED"""
85+ : $@ "'{ unityYamlMergeExec } ' merge -p '$BASE' '$REMOTE' '$LOCAL' '$MERGED'";
8486
8587 var gitignore = targetPath . Combine ( ".gitignore" ) ;
8688 var gitAttrs = targetPath . Combine ( ".gitattributes" ) ;
Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33using UnityEditor ;
44using UnityEngine ;
5+ using Debug = System . Diagnostics . Debug ;
56
67namespace GitHub . Unity
78{
89 sealed class ApplicationCache : ScriptObjectSingleton < ApplicationCache >
910 {
1011 [ SerializeField ] private bool firstRun = true ;
12+
13+ [ NonSerialized ] private bool ? val ;
14+
1115 public bool FirstRun
1216 {
1317 get
1418 {
15- var val = firstRun ;
19+ if ( ! val . HasValue )
20+ {
21+ val = firstRun ;
22+ }
23+
1624 if ( firstRun )
1725 {
1826 firstRun = false ;
1927 Save ( true ) ;
2028 }
21- return val ;
29+
30+ return val . Value ;
2231 }
2332 }
2433 }
You can’t perform that action at this time.
0 commit comments