Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jul 30, 2024
1 parent 9ac7352 commit cf013ee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cli/pkg/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,17 @@ func RunSpecManualCommand(
utils.ExtractZip(zipPath, tempDir)
// Transforming: /var/temp/xxx/yyy/blabla.zip -> /var/temp/xxx/yyy/blabla
gitLocation := strings.TrimSuffix(zipPath, ".zip")
os.Chdir(gitLocation)
log.Printf("git location is: %v", gitLocation)
log.Printf("zipPath: %v", zipPath)
f, err := os.Stat(tempDir)
log.Printf("files in %v : %v ", tempDir, f)

err = os.Chdir(gitLocation)
if err != nil {
log.Printf("Could not chdir: %v", err)
usage.ReportErrorAndExit(spec.VCS.Actor, fmt.Sprintf("could not change directory: %v", err), 1)
}

cmd := exec.Command("git", "init")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit cf013ee

Please sign in to comment.