Skip to content

Commit 50a4e91

Browse files
committed
Use short hash in condition message
Signed-off-by: Michael Bridgen <[email protected]>
1 parent eb7ca1f commit 50a4e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/imageupdateautomation_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (r *ImageUpdateAutomationReconciler) Reconcile(req ctrl.Request) (ctrl.Resu
200200
log.V(debug).Info("no changes made in working directory; no commit")
201201
statusMessage = "no updates made"
202202
if lastCommit, lastTime := auto.Status.LastPushCommit, auto.Status.LastPushTime; lastCommit != "" {
203-
statusMessage = fmt.Sprintf("%s; last commit %s at %s", statusMessage, lastCommit, lastTime.Format(time.RFC3339))
203+
statusMessage = fmt.Sprintf("%s; last commit %s at %s", statusMessage, lastCommit[:7], lastTime.Format(time.RFC3339))
204204
}
205205
} else {
206206
return failWithError(err)

0 commit comments

Comments
 (0)