1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Merge pull request #32 from DeterminateSystems/push-kyzutzxyuwnv

Improve the "dirty" message, by clarifying what the jargon means
This commit is contained in:
Graham Christensen 2025-04-24 14:33:44 +00:00 committed by GitHub
commit 3c5c484e6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -393,10 +393,10 @@ struct GitInputScheme : InputScheme
{
if (workdirInfo.isDirty) {
if (!settings.allowDirty)
throw Error("Git tree '%s' is dirty", locationToArg());
throw Error("Git tree '%s' has uncommitted changes", locationToArg());
if (settings.warnDirty)
warn("Git tree '%s' is dirty", locationToArg());
warn("Git tree '%s' has uncommitted changes", locationToArg());
}
}