Skip to content

Commit 860f8c0

Browse files
committed
fix missing .git directory
c.f actions/checkout#335 (comment)
1 parent e313986 commit 860f8c0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ jobs:
3030
- TEST : debian-unstable
3131
DOCKER_IMAGE : debian:unstable
3232
steps:
33+
- name: Setup OS
34+
run: |
35+
sudo apt-get update -y
36+
sudo apt-get upgrade -y
37+
- name: Setup Git
38+
run: |
39+
sudo apt-get install -y git
3340
- name: Chcekout
3441
uses: actions/checkout@v2
42+
with:
43+
fetch-depth: 0
44+
submodules: recursive
3545
# python3_check
3646
- name: python3_check
3747
if: matrix.CHECK_PYTHON3_COMPILE == true

.travis.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ elif [ "$TEST" == "clang-tidy" ]; then
163163
run-clang-tidy -fix -p $(dirname $file)
164164
done
165165
travis_time_end
166+
sudo chown -R $(whoami) $CI_SOURCE_PATH
166167
git -C $CI_SOURCE_PATH --no-pager diff
167168
git -C $CI_SOURCE_PATH diff-index --quiet HEAD -- .
168169

0 commit comments

Comments
 (0)