Skip to content

Commit

Permalink
Work around github weirdness
Browse files Browse the repository at this point in the history
Currently on the "update submodule" step, we're getting this:

  git submodule update --init --recursive
  fatal: detected dubious ownership in repository at '/__w/certwrapper/certwrapper'
  To add an exception for this directory, call:

  	git config --global --add safe.directory /__w/certwrapper/certwrapper
  make: *** [Makefile:126: update] Error 128

Given the absolute lack of any details of what user the owner is and why
that might be dubious, I've chosen to follow it's advice without prying
too hard.

Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Jan 17, 2024
1 parent 6bf8a8d commit e004c57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: recursive
- name: Work around github/git ownership weirdness
id: ignore-directory-ownership
run: |
git config --global --add safe.directory /__w/certwrapper/certwrapper
- name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: update-submodules
run: |
Expand Down Expand Up @@ -152,6 +156,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: recursive
- name: Work around github/git ownership weirdness
id: ignore-directory-ownership
run: |
git config --global --add safe.directory /__w/certwrapper/certwrapper
- name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: update-submodules
run: |
Expand Down

0 comments on commit e004c57

Please sign in to comment.