blob: d774caad59b8e30e8ec53e4b7933481d1a0e814a [file] [log] [blame]
#!/bin/bash
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
bin/cbuildbot_view_config -d --pretty > buildbot/config_dump.json
if [ "$(git diff buildbot/config_dump.json)" ]; then
echo "You have uncommitted changes to buildbot/config_dump.json"
echo "This is likely because you have modified buildbot/cbuildbot_config.py"
echo "Please --amend your commit to include config_dump.json."
echo
echo "In future, you can update the dump file with the command"
echo "bin/cbuildbot_view_config -d --pretty > buildbot/config_dump.json"
exit 1
fi