GeezerVison is showing github.com — Merge pull request #2156 from EliahKagan/claude/cygwin-safe-directory… · gitpython-developers/GitPython@da05ac6
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/alpine-test.yml +3-5Lines changed: 3 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -63,17 +63,15 @@ jobs: |
63 | 63 |
|
64 | 64 | - name: Show POSIX file ownership |
65 | 65 | run: | |
66 | | - for p in \ |
| 66 | + ls -ld -- \ |
67 | 67 | "$(pwd)" \ |
68 | 68 | "$(pwd)/.git" \ |
69 | 69 | "$(pwd)/git/ext/gitdb" \ |
70 | 70 | "$(pwd)/git/ext/gitdb/.git" \ |
71 | 71 | "$(pwd)/git/ext/gitdb/gitdb/ext/smmap" \ |
72 | 72 | "$(pwd)/git/ext/gitdb/gitdb/ext/smmap/.git" \ |
73 | | - "${HOME:?HOME is not set}/.gitconfig" |
74 | | - do |
75 | | - ls -ld -- "$p" 2>/dev/null || echo "(missing: $p)" |
76 | | - done |
| 73 | + "${HOME:?HOME is not set}/.gitconfig" \ |
| 74 | + 2>&1 || true |
77 | 75 |
|
78 | 76 | - name: Show safe.directory entries |
79 | 77 | # `actions/checkout`'s safe.directory add is only durable for the |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/cygwin-test.yml +3-5Lines changed: 3 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
89 | 89 | # `is_path_owned_by_current_user` reduces to, so this is the view that |
90 | 90 | # determines whether `safe.directory` is consulted. |
91 | 91 | run: | |
92 | | - for p in \ |
| 92 | + ls -ld -- \ |
93 | 93 | "$(pwd)" \ |
94 | 94 | "$(pwd)/.git" \ |
95 | 95 | "$(pwd)/git/ext/gitdb" \ |
|
98 | 98 | "$(pwd)/git/ext/gitdb/gitdb/ext/smmap" \ |
99 | 99 | "$(pwd)/git/ext/gitdb/gitdb/ext/smmap/.git" \ |
100 | 100 | "$(pwd)/.git/modules/gitdb/modules/smmap" \ |
101 | | - "${HOME:?HOME is not set}/.gitconfig" |
102 | | - do |
103 | | - ls -ld -- "$p" 2>/dev/null || echo "(missing: $p)" |
104 | | - done |
| 101 | + "${HOME:?HOME is not set}/.gitconfig" \ |
| 102 | + 2>&1 || true |
105 | 103 |
|
106 | 104 | - name: Show NTFS file ownership |
107 | 105 | # Authoritative NTFS Owner via Get-Acl, with no Cygwin SID-to-uid layer |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/pythonpackage.yml +3-5Lines changed: 3 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -94,17 +94,15 @@ jobs: |
94 | 94 | # not be informative here. The NTFS Owner check below covers Windows. |
95 | 95 | if: matrix.os-type != 'windows' |
96 | 96 | run: | |
97 | | - for p in \ |
| 97 | + ls -ld -- \ |
98 | 98 | "$(pwd)" \ |
99 | 99 | "$(pwd)/.git" \ |
100 | 100 | "$(pwd)/git/ext/gitdb" \ |
101 | 101 | "$(pwd)/git/ext/gitdb/.git" \ |
102 | 102 | "$(pwd)/git/ext/gitdb/gitdb/ext/smmap" \ |
103 | 103 | "$(pwd)/git/ext/gitdb/gitdb/ext/smmap/.git" \ |
104 | | - "${HOME:?HOME is not set}/.gitconfig" |
105 | | - do |
106 | | - ls -ld -- "$p" 2>/dev/null || echo "(missing: $p)" |
107 | | - done |
| 104 | + "${HOME:?HOME is not set}/.gitconfig" \ |
| 105 | + 2>&1 || true |
108 | 106 |
|
109 | 107 | - name: Show NTFS file ownership |
110 | 108 | # Windows only. Reads NTFS Owner directly via Get-Acl, which is the |
|