fischerscode / DockerFlutter

an automatically build Docker image containing the Flutter SDK
https://hub.docker.com/r/fischerscode/flutter
GNU General Public License v3.0
26 stars 14 forks source link

Error occurs when using git submodule #49

Open hossameldinmi opened 5 months ago

hossameldinmi commented 5 months ago

.yaml file

image: fischerscode/flutter:3.16.9

pipelines:
  default:
    - step:
        name: Run unit tests
        script:
          - git submodule update --init --recursive
          - cd ynmo
          - flutter pub get
          # - flutter analyze
          - flutter test --coverage
          - bash <(curl -s https://codecov.io/bash)

Error

+ git submodule update --init --recursive
fatal: detected dubious ownership in repository at '/opt/atlassian/pipelines/agent/build'
To add an exception for this directory, call:
    git config --global --add safe.directory /opt/atlassian/pipelines/agent/build