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()
169
169
{
170
170
if ( gitExecHasChanged )
171
171
{
172
- if ( Environment ! = null )
172
+ if ( gitExecExtension = = null )
173
173
{
174
- if ( gitExecExtension == null )
175
- {
176
- gitExecExtension = Environment . ExecutableExtension ;
174
+ gitExecExtension = Environment . ExecutableExtension ;
177
175
178
- if ( Environment . IsWindows )
179
- {
180
- gitExecExtension = gitExecExtension . TrimStart ( '.' ) ;
181
- }
176
+ if ( Environment . IsWindows )
177
+ {
178
+ gitExecExtension = gitExecExtension . TrimStart ( '.' ) ;
182
179
}
180
+ }
183
181
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 ( ) ;
188
186
189
- CheckEnteredGitPath ( ) ;
190
- }
187
+ CheckEnteredGitPath ( ) ;
188
+ }
191
189
192
- if ( gitExecParent == null )
193
- {
194
- gitExecParent = Environment . GitInstallPath ;
195
- }
190
+ if ( gitExecParent == null )
191
+ {
192
+ gitExecParent = Environment . GitInstallPath ;
196
193
}
197
194
198
195
gitExecHasChanged = false ;
You can’t perform that action at this time.
0 commit comments