mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Improve the "dirty" message, by clarifying what the jargon means
FH-735
This commit is contained in:
parent
a8979e05b1
commit
cecbb2b22c
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue