Skip to content

Add support for worktrees to x.py setup git hook #77684

Closed
@jyn514

Description

@jyn514

.git doesn't exist for worktrees. x.py setup should use git rev-parse --git-common-dir instead.

x.py encountered an error -- do you already have the git hook installed?
Not a directory (os error 20)

Originally posted by @jyn514 in #76356 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions