diff --git a/.github/workflows/bsim-tests.yaml b/.github/workflows/bsim-tests.yaml index c7cc0895bb..15e640b03a 100644 --- a/.github/workflows/bsim-tests.yaml +++ b/.github/workflows/bsim-tests.yaml @@ -145,8 +145,7 @@ jobs: echo "Manifest points to bsim sha $BSIM_VERSION" cd /opt/bsim_west/bsim git fetch -n origin ${BSIM_VERSION} - git config --global advice.detachedHead false - git checkout ${BSIM_VERSION} + git -c advice.detachedHead=false checkout ${BSIM_VERSION} west update make everything -s -j 8 diff --git a/.github/workflows/clang.yaml b/.github/workflows/clang.yaml index 96ac41fd37..edba96022e 100644 --- a/.github/workflows/clang.yaml +++ b/.github/workflows/clang.yaml @@ -95,8 +95,7 @@ jobs: echo "Manifest points to bsim sha $BSIM_VERSION" cd /opt/bsim_west/bsim git fetch -n origin ${BSIM_VERSION} - git config --global advice.detachedHead false - git checkout ${BSIM_VERSION} + git -c advice.detachedHead=false checkout ${BSIM_VERSION} west update make everything -s -j 8 diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 402ed3e186..158489d5ba 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -91,8 +91,7 @@ jobs: echo "Manifest points to bsim sha $BSIM_VERSION" cd /opt/bsim_west/bsim git fetch -n origin ${BSIM_VERSION} - git config --global advice.detachedHead false - git checkout ${BSIM_VERSION} + git -c advice.detachedHead=false checkout ${BSIM_VERSION} west update make everything -s -j 8 diff --git a/.github/workflows/twister.yaml b/.github/workflows/twister.yaml index 4bf097c7df..0ac79809a3 100644 --- a/.github/workflows/twister.yaml +++ b/.github/workflows/twister.yaml @@ -219,8 +219,7 @@ jobs: echo "Manifest points to bsim sha $BSIM_VERSION" cd /opt/bsim_west/bsim git fetch -n origin ${BSIM_VERSION} - git config --global advice.detachedHead false - git checkout ${BSIM_VERSION} + git -c advice.detachedHead=false checkout ${BSIM_VERSION} west update make everything -s -j 8