Skip to content

commit-binaries: fix --dry-run usage

Migration requested to merge mkorpershoek/commit-fix-dry-run into ti-android-12

When passing the--dry-run option, commit-binaries exits with a error code = 1 because:

  • git add --dry-run
  • git commit --dry-run # this returns 1 error code

We must have something to stage, even if git commit uses --dry-run.

Stage all files and unstage them afterwards in case of dry-run.

Signed-off-by: Mattijs Korpershoek mkorpershoek@baylibre.com

Merge request reports