73afc4ef2a
Change-Id: I45395a062d0d329bd710b0c5ac7e5d352dacc895
19 lines
411 B
Bash
Executable File
19 lines
411 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
|
|
GITHEAD=$(git rev-parse HEAD)
|
|
|
|
# Check out previous version
|
|
git checkout HEAD~1
|
|
|
|
cp gerrit/projects.yaml gerrit/projects-old.yaml
|
|
|
|
# Back to current version. Otherwise the
|
|
# check_gerrit_projects_changed.py invocation might be an old version.
|
|
git checkout $GITHEAD
|
|
|
|
python tools/check_gerrit_projects_changed.py gerrit/projects-old.yaml \
|
|
gerrit/projects.yaml
|
|
|
|
rm gerrit/projects-old.yaml
|