This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-18
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -169,30 +169,27 @@ private void MaybeUpdateData()
169169 {
170170 if ( gitExecHasChanged )
171171 {
172- if ( Environment ! = null )
172+ if ( gitExecExtension = = null )
173173 {
174- if ( gitExecExtension == null )
175- {
176- gitExecExtension = Environment . ExecutableExtension ;
174+ gitExecExtension = Environment . ExecutableExtension ;
177175
178- if ( Environment . IsWindows )
179- {
180- gitExecExtension = gitExecExtension . TrimStart ( '.' ) ;
181- }
176+ if ( Environment . IsWindows )
177+ {
178+ gitExecExtension = gitExecExtension . TrimStart ( '.' ) ;
182179 }
180+ }
183181
184- if ( Environment . GitExecutablePath != null )
185- {
186- newGitExec = gitExec = Environment . GitExecutablePath . ToString ( ) ;
187- gitExecParent = Environment . GitExecutablePath . Parent . ToString ( ) ;
182+ if ( Environment . GitExecutablePath != null )
183+ {
184+ newGitExec = gitExec = Environment . GitExecutablePath . ToString ( ) ;
185+ gitExecParent = Environment . GitExecutablePath . Parent . ToString ( ) ;
188186
189- CheckEnteredGitPath ( ) ;
190- }
187+ CheckEnteredGitPath ( ) ;
188+ }
191189
192- if ( gitExecParent == null )
193- {
194- gitExecParent = Environment . GitInstallPath ;
195- }
190+ if ( gitExecParent == null )
191+ {
192+ gitExecParent = Environment . GitInstallPath ;
196193 }
197194
198195 gitExecHasChanged = false ;
You can’t perform that action at this time.
0 commit comments