Skip to content

Commit

Permalink
feat: use full-commit hash for mach-composer cloud
Browse files Browse the repository at this point in the history
Instead of sending a short hash to mach composer cloud, use the full
hash
  • Loading branch information
mvantellingen committed Feb 24, 2025
1 parent ce1f7eb commit e80811f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gitutils/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ func GetRecentCommits(ctx context.Context, basePath string, baseRevision, target
subject := strings.TrimSpace(fields[0])
parents := make([]string, len(c.ParentHashes))
for i, parent := range c.ParentHashes {
parents[i] = parent.String()[:7]
parents[i] = parent.String()
}

result[i] = GitCommit{
Commit: c.Hash.String()[:7],
Commit: c.Hash.String(),
Parents: parents,
Author: GitCommitAuthor{
Name: c.Author.Name,
Expand Down

0 comments on commit e80811f

Please sign in to comment.