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()
80
80
var targetPath = NPath . CurrentDirectory ;
81
81
82
82
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'";
84
86
85
87
var gitignore = targetPath . Combine ( ".gitignore" ) ;
86
88
var gitAttrs = targetPath . Combine ( ".gitattributes" ) ;
Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using UnityEditor ;
4
4
using UnityEngine ;
5
+ using Debug = System . Diagnostics . Debug ;
5
6
6
7
namespace GitHub . Unity
7
8
{
8
9
sealed class ApplicationCache : ScriptObjectSingleton < ApplicationCache >
9
10
{
10
11
[ SerializeField ] private bool firstRun = true ;
12
+
13
+ [ NonSerialized ] private bool ? val ;
14
+
11
15
public bool FirstRun
12
16
{
13
17
get
14
18
{
15
- var val = firstRun ;
19
+ if ( ! val . HasValue )
20
+ {
21
+ val = firstRun ;
22
+ }
23
+
16
24
if ( firstRun )
17
25
{
18
26
firstRun = false ;
19
27
Save ( true ) ;
20
28
}
21
- return val ;
29
+
30
+ return val . Value ;
22
31
}
23
32
}
24
33
}
You can’t perform that action at this time.
0 commit comments