From 03b7156e84abe736c9c5c93ed5743998ef2c81ab Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 20 Jun 2014 17:28:45 -0700 Subject: [PATCH] update_metadata: continue if there are no updates to commit. --- update_metadata | 6 ++++++ 1 file changed, 6 insertions(+) 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