From e81e811d56d7b223e8d919f4837d69fd9df81e6a Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Mon, 8 Jul 2024 13:18:18 -0400 Subject: [PATCH] context: fix original context not being restored --- Library/Homebrew/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/context.rb b/Library/Homebrew/context.rb index 801f34faab..46f57a0ce5 100644 --- a/Library/Homebrew/context.rb +++ b/Library/Homebrew/context.rb @@ -63,7 +63,7 @@ module Context end def with_context(**options) - old_context = Thread.current[:context] + old_context = Context.current new_context = ContextStruct.new( debug: options.fetch(:debug, old_context&.debug?),