Skip to content

Commit d09777a

Browse files
authored
Merge pull request #46 from rtCamp/fix/submodule
Add patch for submodule git clone
2 parents ae4dc4b + ea4ecc4 commit d09777a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function maybe_install_submodules() {
142142
if [[ -f "$GITHUB_WORKSPACE/.gitmodules" ]]; then
143143
# Change directory ownership to container user due to issue https://github.com/actions/checkout/issues/760
144144
# This will be changed to www-data or similar on deployment by deployer.
145-
chown -R :root "$GITHUB_WORKSPACE"
145+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
146146

147147
# add github's public key
148148
curl -sL https://api.github.com/meta | jq -r '.ssh_keys | .[]' | sed -e 's/^/github.com /' >>/etc/ssh/known_hosts

0 commit comments

Comments
 (0)