Commit 8503e98e authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

Merge branch 'ci-fix-formatting-check-container' into 'develop'

fix(clang-format): git setup to be done in CI case

See merge request !3
parents 3c2349cc c0cae5fb
Pipeline #30578 passed with stage
in 0 seconds
......@@ -139,6 +139,16 @@ then
exit 1
fi
# When running in a container, in /home folder
IS_CONTAINER=`egrep -c "docker|kubepods|podman|buildah|libpod" /proc/self/cgroup || true`
if [ $IS_CONTAINER -ne 0 ]
then
if [ $PWD = "/home/src" ]
then
git config --global --add safe.directory /home
fi
fi
# Merge request scenario
MERGE_COMMMIT=`git log -n1 --pretty=format:%H`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment