Print git diff if dirty

Created on 30 June 2025, about 1 month ago

If the git repository is dirty the deployment is aborted with the following error:

[RuntimeException]                                                           
Pushing code was aborted because your local Git repository has uncommitted changes. Either commit, reset, or stash your changes via git.

If run in a pipeline it would be nice to see what the git diff is to better understand why it got dirty.

Solution:
Print git diff before throwing this error.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇭Switzerland milanbombschliip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024