Skip to content

Reference to hard-coded gitattributes path fails if no access #150

@ian-burnett

Description

@ian-burnett

Scenario:

Running on a system where a /data directory exists, but to which the current user has no access.

Running a git command produces the following warning:

MV2C ~/git/cics-perf-common > git status
warning: unable to access '/data/zopen/usr/local/zopen/git/git-v2.49.0/etc/gitattributes': EDC5111I Permission denied.
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

If the /data directory does not exist, no warning is produced.

The git index is updated by the above commands, which means the warning is only produced once per repo. Resetting the git index can also produce the same problem:

rm .git/index
bash-5.2$ git reset --hard origin/main
warning: unable to access '/data/zopen/usr/local/zopen/git/git-v2.49.0/etc/gitattributes': EDC5111I Permission denied.

Git version info

MV2C ~ > zopen info git
==> git: STABLE 2.49.0
Description:         git on z/OS
==> Package
Version:             2.49.0
Release:             20250404_112157
Buildline:           STABLE
Categories:          development source_control
GitHub:              https://github.com/zopencommunity/gitport
License:             https://github.com/zopencommunity/gitport/blob/main/patches/LICENSE
zopen license:       https://github.com/zopencommunity/gitport/blob/main/LICENSE
==> Installation Details
Installed:           Yes
Installation Path:   /cicsperf/zopen/usr/local/zopen/git/git-v2.49.0.20250404_112157.zos
Installation Size:   212.396 MB

See also internal Slack discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions