Skip to content

Commit

Permalink
update_metadata: continue if there are no updates to commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
marineam committed Jun 21, 2014
1 parent bf9795c commit 03b7156
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions update_metadata
Expand Up @@ -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
Expand Down

0 comments on commit 03b7156

Please sign in to comment.