commit fb6cc0040021afc67185dd0c4702fc359fcae8d6 parent ebb6bf330eae54f7999315f28dd81bac1a038d95 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 1 Dec 2019 21:07:02 +0100 fetch deployment when building Diffstat:
| M | buildbot/build.sh | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/buildbot/build.sh b/buildbot/build.sh @@ -11,6 +11,18 @@ echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume." exit 1 fi +fetch () { + git clean -fdx + git fetch + # reset to updated upstream branch, but only if we're tracking a branch + branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo head) + git reset --hard "$branch" +} + +cd $HOME/deployment +fetch +cd + echo "Running taler-deployment bootstrap" source "${HOME}/activate" taler-deployment bootstrap