1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-13 14:02:42 +01:00

Hide the "dirty" notice when running nix develop

In the common case, nix develop is running against a dirty checkout of a project.
This patch removes the warning about a dirty tree on nix develop only.

Close FH-736
This commit is contained in:
Graham Christensen 2025-04-23 20:54:53 -04:00
parent a8979e05b1
commit d74acf1954
3 changed files with 13 additions and 0 deletions

View file

@ -903,8 +903,13 @@ InstallableCommand::InstallableCommand()
});
}
void InstallableCommand::preRun(ref<Store> store)
{
}
void InstallableCommand::run(ref<Store> store)
{
preRun(store);
auto installable = parseInstallable(store, _installable);
run(store, std::move(installable));
}