f2c6295f25
Check changes to the upstream URL for a repo that has option track-upstream. The check currently is just cloning of the repository. Since we currently have over 580 repos with track upstream, this check compares the previous version of the file with the current one and only tests for changed entries. Change-Id: Ic716c685512ebe660876388d663314bf3b008b66
17 lines
382 B
Bash
Executable File
17 lines
382 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
|