File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,17 @@ func RunSpecManualCommand(
189
189
utils .ExtractZip (zipPath , tempDir )
190
190
// Transforming: /var/temp/xxx/yyy/blabla.zip -> /var/temp/xxx/yyy/blabla
191
191
gitLocation := strings .TrimSuffix (zipPath , ".zip" )
192
- os .Chdir (gitLocation )
192
+ log .Printf ("git location is: %v" , gitLocation )
193
+ log .Printf ("zipPath: %v" , zipPath )
194
+ f , err := os .Stat (tempDir )
195
+ log .Printf ("files in %v : %v " , tempDir , f )
196
+
197
+ err = os .Chdir (gitLocation )
198
+ if err != nil {
199
+ log .Printf ("Could not chdir: %v" , err )
200
+ usage .ReportErrorAndExit (spec .VCS .Actor , fmt .Sprintf ("could not change directory: %v" , err ), 1 )
201
+ }
202
+
193
203
cmd := exec .Command ("git" , "init" )
194
204
cmd .Stdout = os .Stdout
195
205
cmd .Stderr = os .Stderr
You can’t perform that action at this time.
0 commit comments