Skip to content

Test for bare repository is unreliable #106

@sammcj

Description

@sammcj

This test for a bare repo is unreliable as it requires 'hooks' to strictly be of type 'file'.

In many environments, for example GitLab this test will fail because hooks is a symlink, not a 'file', its a symlink:

# file hooks
hooks: symbolic link to `/opt/gitlab/embedded/service/gitlab-shell/hooks'

I suggest changing the -f to -e so it works if 'hooks' exists as a file or symlink.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions