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 +1
-7
lines changed
src/GitHub.Api/Application Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,9 @@ public void Run(bool firstRun)
69
69
} ) ;
70
70
71
71
var afterPathDetermined = new ActionTask < NPath > ( CancellationToken , ( b , path ) => {
72
-
73
72
Logger . Trace ( "Setting Environment git path: {0}" , path ) ;
74
73
Environment . GitExecutablePath = path ;
75
-
76
74
} ) . ThenInUI ( ( ) => {
77
-
78
75
Environment . User . Initialize ( GitClient ) ;
79
76
80
77
if ( Environment . IsWindows )
@@ -106,18 +103,15 @@ public void Run(bool firstRun)
106
103
107
104
var applicationDataPath = Environment . GetSpecialFolder ( System . Environment . SpecialFolder . LocalApplicationData ) . ToNPath ( ) ;
108
105
var installDetails = new GitInstallDetails ( applicationDataPath , true ) ;
106
+
109
107
var gitInstaller = new GitInstaller ( Environment , CancellationToken , installDetails ) ;
110
108
gitInstaller . SetupGitIfNeeded ( new ActionTask < NPath > ( CancellationToken , ( b , path ) => {
111
-
112
109
Logger . Trace ( "GitInstaller Success: {0}" , path ) ;
113
-
114
110
new FuncTask < NPath > ( CancellationToken , ( ) => path )
115
111
. Then ( afterPathDetermined )
116
112
. Start ( ) ;
117
-
118
113
} ) , new ActionTask ( CancellationToken , ( ) => {
119
114
Logger . Warning ( "GitInstaller Failure" ) ;
120
-
121
115
findExecTask . Start ( ) ;
122
116
} ) ) ;
123
117
}
You can’t perform that action at this time.
0 commit comments