diff --git a/.docker/install_cpplib.sh b/.docker/install_cpplib.sh
index 484938f13fde57c48d22cca03eec8af7641d73d9..35eb745a07e8f8cec176fb0bcb8531c634b54105 100755
--- a/.docker/install_cpplib.sh
+++ b/.docker/install_cpplib.sh
@@ -5,8 +5,10 @@ cd caosdb-cpplib
 # check if there is a crooesponding cpp branch. Use the default branch
 # if there isn't.
 if (git show-ref --verify --quiet refs/heads/$CI_COMMIT_REF_NAME) ; then
+    echo "git checkout $CI_COMMIT_REF_NAME"
     git checkout $CI_COMMIT_REF_NAME
 else
+    echo "git checkout $CPP_DEFAULT_BRANCH"
     git checkout $CPP_DEFAULT_BRANCH
 fi
 git submodule update --init --recursive