Skip to content

Commit

Permalink
Print output of Git checkout command (#8884)
Browse files Browse the repository at this point in the history
Co-authored-by: Abhay Krishna Arunachalam <[email protected]>
  • Loading branch information
eks-distro-pr-bot and abhay-krishna authored Oct 21, 2024
1 parent 1a24b5e commit 27bb4e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release/cli/pkg/filereader/file_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ func ReadGitTag(projectPath, gitRootPath, branch string) (string, error) {
return "", fmt.Errorf("error getting current branch: %v", err)
}
if currentBranch != branch {
_, err = git.CheckoutRepo(gitRootPath, branch)
out, err := git.CheckoutRepo(gitRootPath, branch)
fmt.Println(out)
if err != nil {
return "", fmt.Errorf("error checking out repo: %v", err)
}
Expand Down

0 comments on commit 27bb4e9

Please sign in to comment.