Skip to content

Commit

Permalink
revert the checkout function (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Jul 29, 2024
1 parent bb75f13 commit eadcbf7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cli/pkg/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/samber/lo"
"log"
"os"
"os/exec"
"time"
)

Expand All @@ -30,17 +29,6 @@ func RunSpec(
commentUpdaterProvider comment_summary.CommentUpdaterProvider,
) error {

// checking out to the commit ID
log.Printf("checking out to commit ID %v", spec.Job.Commit)
cmd := exec.Command("git", "checkout", spec.Job.Commit)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
log.Printf("error while checking out to commit SHA: %v", err)
usage.ReportErrorAndExit(spec.VCS.Actor, fmt.Sprintf("error while checking out to commit sha: %v", err), 1)
}

job, err := jobProvider.GetJob(spec.Job)
if err != nil {
usage.ReportErrorAndExit(spec.VCS.Actor, fmt.Sprintf("could not get job: %v", err), 1)
Expand Down

0 comments on commit eadcbf7

Please sign in to comment.