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 +2
-1
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class EntryPoint : ScriptableObject
18
18
// this may run on the loader thread if it's an appdomain restart
19
19
static EntryPoint ( )
20
20
{
21
+ Logging . LoggerFactory = s => new UnityLogAdapter ( s ) ;
21
22
if ( System . Environment . GetEnvironmentVariable ( "GITHUB_UNITY_DISABLE" ) == "1" )
22
23
{
23
24
Debug . Log ( "GitHub for Unity " + ApplicationInfo . Version + " is disabled" ) ;
@@ -29,7 +30,6 @@ static EntryPoint()
29
30
return ;
30
31
}
31
32
cctorCalled = true ;
32
- Logging . LoggerFactory = s => new UnityLogAdapter ( s ) ;
33
33
Logging . Info ( "Initializing GitHub for Unity version " + ApplicationInfo . Version ) ;
34
34
35
35
ServicePointManager . ServerCertificateValidationCallback = ServerCertificateValidationCallback ;
Original file line number Diff line number Diff line change @@ -464,6 +464,7 @@ private void OnCreateGUI()
464
464
var cancelCreate = false ;
465
465
var cannotCreate = selectedNode == null ||
466
466
selectedNode . Type == NodeType . Folder ||
467
+ newBranchName == null ||
467
468
! Utility . BranchNameRegex . IsMatch ( newBranchName ) ;
468
469
469
470
// Create on return/enter or cancel on escape
You can’t perform that action at this time.
0 commit comments