aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2018-09-22 18:59:22 +0100
committerSergio Martins <smartins@kde.org>2018-09-22 18:59:22 +0100
commit3665a54a9f52dab0dcc0546145dfda72b6a1cb92 (patch)
tree2a613c841edb5960368c644077d3f130e6e4e5d0
parent635178c16b9fda38e36fe0f4f5e08e47a0159df7 (diff)
build-clazy.sh: Don't checkout an old branch
Now we checkout what we fetched
-rwxr-xr-xtests/docker/build-clazy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/docker/build-clazy.sh b/tests/docker/build-clazy.sh
index c897c3ab..0ad1cb5e 100755
--- a/tests/docker/build-clazy.sh
+++ b/tests/docker/build-clazy.sh
@@ -23,4 +23,4 @@ fi
export PATH=$CLAZY_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$CLAZY_PREFIX/lib:$CLAZY_PREFIX/lib64:$LD_LIBRARY_PATH
-cd /root/clazy && git pull && git checkout $BRANCH && cmake -DCMAKE_INSTALL_PREFIX=$CLAZY_PREFIX -DCMAKE_BUILD_TYPE=RelWithDebInfo . && make $J_FLAG && make install && cd tests && ./run_tests.py
+cd /root/clazy && git fetch && git checkout origin/$BRANCH && cmake -DCMAKE_INSTALL_PREFIX=$CLAZY_PREFIX -DCMAKE_BUILD_TYPE=RelWithDebInfo . && make $J_FLAG && make install && cd tests && ./run_tests.py