File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ var initCmd = &cobra.Command{
38
38
)
39
39
signal .Notify (sigInput , os .Interrupt , syscall .SIGTERM )
40
40
41
+ // check if git executable exists, supervisor will fail if it doesn't
42
+ // checking for it here allows to bubble up this error to the user
43
+ _ , err = exec .LookPath ("git" )
44
+ if err != nil {
45
+ log .WithError (err ).Fatal ("cannot find git executable, make sure it is installed as part of gitpod image" )
46
+ }
47
+
41
48
supervisorPath , err := os .Executable ()
42
49
if err != nil {
43
50
supervisorPath = "/.supervisor/supervisor"
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ func Run(options ...RunOption) {
192
192
log .WithError (err ).Fatal ("cannot ensure Gitpod user exists" )
193
193
}
194
194
symlinkBinaries (cfg )
195
+
195
196
configureGit (cfg , childProcEnvvars )
196
197
197
198
tokenService := NewInMemoryTokenService ()
You can’t perform that action at this time.
0 commit comments