◐ Shell
clean mode source ↗

Cut xtrace noise from POSIX-ownership diagnostic steps by EliahKagan · Pull Request #2156 · gitpython-developers/GitPython

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut xtrace noise from POSIX-ownership diagnostic steps #2156

Changes from all commits

Commits

File filter

Filter by extension

Conversations

Failed to load comments.

Loading

Jump to

Jump to file

Failed to load files.

Loading

Diff view
Diff view

8 changes: 3 additions & 5 deletions .github/workflows/alpine-test.yml

Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,15 @@ jobs:

- name: Show POSIX file ownership
run: |
for p in \
ls -ld -- \
"$(pwd)" \
"$(pwd)/.git" \
"$(pwd)/git/ext/gitdb" \
"$(pwd)/git/ext/gitdb/.git" \
"$(pwd)/git/ext/gitdb/gitdb/ext/smmap" \
"$(pwd)/git/ext/gitdb/gitdb/ext/smmap/.git" \
"${HOME:?HOME is not set}/.gitconfig"
do
ls -ld -- "$p" 2>/dev/null || echo "(missing: $p)"
done
"${HOME:?HOME is not set}/.gitconfig" \
2>&1 || true

- name: Show safe.directory entries
# `actions/checkout`'s safe.directory add is only durable for the
Expand Down

8 changes: 3 additions & 5 deletions .github/workflows/cygwin-test.yml

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
# `is_path_owned_by_current_user` reduces to, so this is the view that
# determines whether `safe.directory` is consulted.
run: |
for p in \
ls -ld -- \
"$(pwd)" \
"$(pwd)/.git" \
"$(pwd)/git/ext/gitdb" \
Expand All @@ -98,10 +98,8 @@ jobs:
"$(pwd)/git/ext/gitdb/gitdb/ext/smmap" \
"$(pwd)/git/ext/gitdb/gitdb/ext/smmap/.git" \
"$(pwd)/.git/modules/gitdb/modules/smmap" \
"${HOME:?HOME is not set}/.gitconfig"
do
ls -ld -- "$p" 2>/dev/null || echo "(missing: $p)"
done
"${HOME:?HOME is not set}/.gitconfig" \
2>&1 || true

- name: Show NTFS file ownership
# Authoritative NTFS Owner via Get-Acl, with no Cygwin SID-to-uid layer
Expand Down

8 changes: 3 additions & 5 deletions .github/workflows/pythonpackage.yml

Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ jobs:
# not be informative here. The NTFS Owner check below covers Windows.
if: matrix.os-type != 'windows'
run: |
for p in \
ls -ld -- \
"$(pwd)" \
"$(pwd)/.git" \
"$(pwd)/git/ext/gitdb" \
"$(pwd)/git/ext/gitdb/.git" \
"$(pwd)/git/ext/gitdb/gitdb/ext/smmap" \
"$(pwd)/git/ext/gitdb/gitdb/ext/smmap/.git" \
"${HOME:?HOME is not set}/.gitconfig"
do
ls -ld -- "$p" 2>/dev/null || echo "(missing: $p)"
done
"${HOME:?HOME is not set}/.gitconfig" \
2>&1 || true

- name: Show NTFS file ownership
# Windows only. Reads NTFS Owner directly via Get-Acl, which is the
Expand Down