Skip to content

Commit c9ef0a9

Browse files
authored
Merge pull request #128 from jackton1/patch-4
chore: remove redundant safe.directory configuration
2 parents 9a46ba8 + 7e6f17c commit c9ef0a9

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,6 @@ jobs:
9999
| directory | string | '.' | Directory to change to before pushing. |
100100
| repository | string | '' | Repository name. <br /> Default or empty repository name represents <br /> current github repository. <br /> If you want to push to other repository, <br /> you should make a [personal access token](https://github.com/settings/tokens) <br /> and use it as the `github_token` input. |
101101

102-
## Troubeshooting
103-
104-
Please be aware, if your job fails and the corresponding output log looks like the following error, update your used verson of the action to `ad-m/github-push-action@master`:
105-
```log
106-
Push to branch ***************
107-
fatal: unsafe repository ('/github/workspace' is owned by someone else)
108-
To add an exception for this directory, call:
109-
110-
git config --global --add safe.directory /github/workspace
111-
```
112-
113102
## License
114103

115104
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).

start.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ else
4040
remote_repo="${INPUT_GITHUB_URL_PROTOCOL}//${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@${INPUT_GITHUB_URL}/${REPOSITORY}.git"
4141
fi
4242

43-
git config --local --add safe.directory ${INPUT_DIRECTORY}
44-
4543
if ${INPUT_FORCE_WITH_LEASE}; then
4644
git push --follow-tags $_FORCE_OPTION $_TAGS;
4745
else
4846
git push "${remote_repo}" HEAD:${INPUT_BRANCH} --verbose --follow-tags $_FORCE_OPTION $_TAGS;
4947
fi
50-

0 commit comments

Comments
 (0)