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

Improve the "dirty" message, by clarifying what the jargon means

FH-735
This commit is contained in:
Graham Christensen 2025-04-23 20:38:59 -04:00
parent a8979e05b1
commit cecbb2b22c

View file

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