From 8289c44e8f568405963f5c8984d76472805059d7 Mon Sep 17 00:00:00 2001 From: Ryan White Date: Mon, 28 Oct 2024 10:02:04 +0000 Subject: [PATCH] fix: remove ephemeral fields from update context --- cruft/_commands/update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cruft/_commands/update.py b/cruft/_commands/update.py index 7c80c1b..c6c8541 100644 --- a/cruft/_commands/update.py +++ b/cruft/_commands/update.py @@ -6,6 +6,8 @@ import click import typer +from cruft._commands.utils.clean import clean_context + from . import utils from .utils import example from .utils.iohelper import AltTemporaryDirectory @@ -138,7 +140,7 @@ def update( # to the cruft file cruft_state["commit"] = last_commit cruft_state["checkout"] = checkout - cruft_state["context"] = new_context + cruft_state["context"] = clean_context(new_context) cruft_file.write_text(utils.cruft.json_dumps(cruft_state)) typer.secho( "Good work! Project's cruft has been updated and is as clean as possible!",