Skip to content

Commit

Permalink
fix: remove ephemeral fields from update context
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanWhite25 committed Oct 28, 2024
1 parent 0274f7b commit 8289c44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cruft/_commands/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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!",
Expand Down

0 comments on commit 8289c44

Please sign in to comment.