aboutsummaryrefslogtreecommitdiffstats
path: root/coverity
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-11 13:58:06 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-11 13:58:06 +0200
commit5b4e64c3059fe5b79c9ee06f772ae5dea90e6f59 (patch)
tree20b6f52a7b76091ba1db3397803854381b637063 /coverity
parent315e5929f51727a787f56c85e4498f8fd17817df (diff)
coverity: don't pull --rebase, instead fetch and reset --hard
Diffstat (limited to 'coverity')
-rwxr-xr-xcoverity/build_Osmocom.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/coverity/build_Osmocom.sh b/coverity/build_Osmocom.sh
index 6aaf5fb..d00ad51 100755
--- a/coverity/build_Osmocom.sh
+++ b/coverity/build_Osmocom.sh
@@ -10,11 +10,15 @@ install -d "$prefix"
export PKG_CONFIG_PATH="$prefix/lib/pkgconfig"
+git_branch() {
+ echo "$(git status)" | grep 'On branch' | sed 's/On branch //'
+}
+
do_build() {
+ git fetch
+ git reset --hard "origin/$(git_branch)"
git clean -dxf
git checkout .
- git remote prune origin
- git pull --rebase -s recursive -Xtheirs
autoreconf --install --force
./configure --prefix="$prefix" $*