Commit 51450a7e authored by Raphael Defosseux's avatar Raphael Defosseux

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

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent c4bae369
...@@ -139,6 +139,16 @@ then ...@@ -139,6 +139,16 @@ then
exit 1 exit 1
fi 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 request scenario
MERGE_COMMMIT=`git log -n1 --pretty=format:%H` 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