commit | acc8973372595225307de3d7990f5e0710273ec3 | [log] [tgz] |
---|---|---|
author | Rob Mohr <mohrr@google.com> | Thu Dec 02 15:27:55 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 03 17:13:15 2021 +0000 |
tree | 5e4cc440552dcebca64ae763cb42cb378904c1f8 | |
parent | e23423ef3e3acef6c12b124626d7107a0e0b0666 [diff] |
pw_presubmit: Fail gracefully if missing base rev Fail gracefully if 'pw presubmit --base HEAD~1' is run but there is no 'HEAD~1' revision. This happens when dealing with a brand new repository or when a checkout has a depth of 1. If we can't process a base commit we print a warning and resume as if the '--base' argument was not used. Change-Id: I5bf132131ea452d0d06de8ac02b907d062be12c3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/71781 Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/