2016-09-27 21:45:39 +02:00
|
|
|
#!/bin/bash -xe
|
|
|
|
|
|
|
|
|
|
|
|
GITHEAD=$(git rev-parse HEAD)
|
2018-02-16 14:12:18 +00:00
|
|
|
GITBRANCH=$(git rev-parse --abbrev-ref HEAD)
|
2016-09-27 21:45:39 +02:00
|
|
|
|
|
|
|
# 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
|
2016-12-19 15:56:00 +01:00
|
|
|
|
|
|
|
rm gerrit/projects-old.yaml
|
2018-02-16 14:12:18 +00:00
|
|
|
git checkout $GITBRANCH
|