Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Detects a clean repository as dirty. (Windows, symlinks) #7080

Open
@nathanhammond

Description

@nathanhammond

Platform: Windows

Given this repository:
https://github.com/nathanhammond/symlink_publish

A call to git_status_list_new returns GIT_STATUS_WT_MODIFIED for this symlink: https://github.com/nathanhammond/symlink_publish/blob/main/copy/original

Downstream, this results in cargo publish (and cargo release) failing for repositories with this shape (unless passing --allow-dirty).

Full reproduction via Rust and git2:

git clone https://github.com/nathanhammond/symlink_publish
cd symlink_publish
cargo publish --dry-run

And if you want to directly test, the reproduction repository also contains tests inside of lib.rs to directly run the code which triggers this outcome.

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