-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
bugNot as expectedNot as expected
Description
cargo release, when run on Windows, for a repository containing symlinks, gets incorrect results about the status of files.
Reduced reproduction: https://github.com/xnorpx/symlink_publish
Environment: Windows
core.symlinks set to true
Test:
git clone https://github.com/xnorpx/symlink_publish
cd symlink_publish
cargo releaseFailure:
>cargo release
error: uncommitted changes detected, please resolve before release:
copy/original (Status(WT_MODIFIED))
Publishing symlink_publish
Updating crates.io index
Packaging symlink_publish v0.1.0 (C:\git\symlink_publish)
Packaged 9 files, 2.6KiB (1.8KiB compressed)
Verifying symlink_publish v0.1.0 (C:\git\symlink_publish)
Compiling symlink_publish v0.1.0 (C:\git\symlink_publish\target\package\symlink_publish-0.1.0)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.77s
Uploading symlink_publish v0.1.0 (C:\git\symlink_publish)
warning: aborting upload due to dry run
Pushing Pushing main, v0.1.0 to origin
error: dry-run failed, resolve the above errors and try again.Notably, git status in the repository returns "clean" as expected.
The status enum value comes from libgit2 via git2, so it's very plausibly an upstream issue. I did not see any issues filed upstream in a cursory search.
/cc @xnorpx, my colleague who encountered the issue, and reduced it.
Metadata
Metadata
Assignees
Labels
bugNot as expectedNot as expected