Default to an empty footers dict instead of None.
By default during tests, the _get_footers_step call will return None for the returned footers because it does not set any test data. This does not match the actual behavior of the recipe because git_footers.py returns an empty json object if the commit message has no footers. This change updates it to return an empty dict instead of None and checks for the cached footers value to be None instead of any non-true value so that a commit message without footers doesn't get parsed multiple times. Change-Id: I716a27e964eb92de138228df5cc0876322d82823 Recipe-Manual-Change: build Recipe-Nontrivial-Roll: build_limited Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4492269 Commit-Queue: Garrett Beaty <gbeaty@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com>changes/69/4492269/3
parent
c333c3424e
commit
37f499daec
Loading…
Reference in New Issue