Merge "gerrit tests should return to checked out branch"

This commit is contained in:
Zuul 2018-03-17 16:14:59 +00:00 committed by Gerrit Code Review
commit 33839c1e06
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
GITHEAD=$(git rev-parse HEAD)
GITBRANCH=$(git rev-parse --abbrev-ref HEAD)
# Check out previous version
git checkout HEAD~1
@ -16,3 +17,4 @@ python tools/check_gerrit_projects_changed.py gerrit/projects-old.yaml \
gerrit/projects.yaml
rm gerrit/projects-old.yaml
git checkout $GITBRANCH