chiark / gitweb /
jenkins-build-makebuildserver: handle git update of fdroiddata better
authorHans-Christoph Steiner <hans@eds.org>
Fri, 10 Feb 2017 11:45:04 +0000 (12:45 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 13 Feb 2017 19:08:45 +0000 (20:08 +0100)
This prevents attempts to merge when there was rebasing, which can fail.

jenkins-build-makebuildserver

index 12145a2f915aa4b3da0611cdf710177950b82038..d151968b1390d80a88f11081b9ecaf56de2c733c 100755 (executable)
@@ -54,8 +54,9 @@ echo "apt_package_cache = True" >> $WORKSPACE/makebuildserver.config.py
 # this can be handled in the jenkins job, or here:
 if [ -e fdroiddata ]; then
     cd fdroiddata
+    git remote update -p
     git checkout master
-    git pull
+    git reset --hard origin/master
     cd ..
 else
     git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata