Skip to content

Commit

Permalink
Don't set safe.directory
Browse files Browse the repository at this point in the history
To check if the tests really rely on this.
  • Loading branch information
EliahKagan authored Sep 6, 2023
1 parent 830025b commit 5d1df82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cygwin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
SHELLOPTS: igncr
TMP: "/tmp"
TEMP: "/tmp"

steps:
- name: Force LF line endings
run: git config --global core.autocrlf input
Expand All @@ -24,8 +24,7 @@ jobs:
packages: python39 python39-pip python39-virtualenv git
- name: Tell git to trust this repo
shell: bash.exe -eo pipefail -o igncr "{0}"
run: |
/usr/bin/git config --global --add safe.directory $(pwd)
run: |
/usr/bin/git config --global protocol.file.allow always
- name: Install dependencies and prepare tests
shell: bash.exe -eo pipefail -o igncr "{0}"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ jobs:
mypy -p git
- name: Tell git to trust this repo
run: |
/usr/bin/git config --global --add safe.directory $(pwd)
run: |
/usr/bin/git config --global protocol.file.allow always
- name: Test with pytest
Expand Down

0 comments on commit 5d1df82

Please sign in to comment.