diff --git a/update_metadata b/update_metadata index f17dd9c42d..22add59158 100755 --- a/update_metadata +++ b/update_metadata @@ -29,6 +29,12 @@ update_overlay() { pushd "${repo_path}" >/dev/null git add -A metadata/md5-cache + + if git diff --quiet --cached; then + info "Nothing to update in ${repo_name}" + return 0 + fi + if [[ ${FLAGS_commit} -eq ${FLAGS_TRUE} ]]; then git commit -m "chore(metadata): Regenerate cache" metadata/md5-cache else