Refuse to push changes with a dirty git client#155946
Open
Daniel-B-Smith wants to merge 1 commit intorust-lang:mainfrom
Open
Refuse to push changes with a dirty git client#155946Daniel-B-Smith wants to merge 1 commit intorust-lang:mainfrom
Daniel-B-Smith wants to merge 1 commit intorust-lang:mainfrom
Conversation
Collaborator
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Member
|
I'm not sure this is the way everyone need to follow, I definitely want to push to remote even there are untrack files left(for example some test files, etc), I may push to remote then |
Contributor
Author
|
I don’t feel strongly about untracked files. I’m happy to put that behind
an environment variable one way or the other or just drop it altogether.
…On Tue, Apr 28, 2026 at 11:13 PM Yukang ***@***.***> wrote:
*chenyukang* left a comment (rust-lang/rust#155946)
<#155946 (comment)>
I'm not sure this is the way everyone need to follow, I definitely want to
push to remote even there are untrack files left(for example some test
files, etc), I may push to remote then git clean -fd to remove them later.
—
Reply to this email directly, view it on GitHub
<#155946 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZA2YFIMUTMNT44UMCJCKL4YFXMFAVCNFSM6AAAAACYJ5IGMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNBQGU3DOMBWHA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've run into the issue more than once where I've fixed an issue in my client but forgotten to commit it one way or another. The verification succeeds because the files on disk are correct even though the files in the commit being pushed are incorrect.
This change checks to see if there are any uncommitted changes or untracked files in the client before running the tidy checks.