Merge pull request #282 from marineam/metadata

update_metadata: continue if there are no updates to commit.
This commit is contained in:
Michael Marineau 2014-06-23 12:25:43 -07:00
commit 9562e5e768

View File

@ -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