Skip to content

Commit

Permalink
checkout: Fix error on containers
Browse files Browse the repository at this point in the history
```
git remote add origin https://github.com/taiki-e/cargo-hack
  fatal: detected dubious ownership in repository at '/__w/cargo-hack/cargo-hack'
  To add an exception for this directory, call:

  	git config --global --add safe.directory /__w/cargo-hack/cargo-hack
```
  • Loading branch information
taiki-e committed Jan 8, 2024
1 parent df8c7ad commit 0ad94a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checkout/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ wd=$(pwd)
g git version

g git init

g git config --global --add safe.directory "${wd}"

g git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"

g git config --local gc.auto 0
Expand Down

0 comments on commit 0ad94a2

Please sign in to comment.