From 6be546a5bcbeffc377b5065d70156485c9de63b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 Aug 2025 08:50:38 +0000 Subject: [PATCH] Skip git logic for casks as they don't need it for patch creation Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com> --- Library/Homebrew/dev-cmd/unpack.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Library/Homebrew/dev-cmd/unpack.rb b/Library/Homebrew/dev-cmd/unpack.rb index 4a25fc80bd..b24d1f5976 100644 --- a/Library/Homebrew/dev-cmd/unpack.rb +++ b/Library/Homebrew/dev-cmd/unpack.rb @@ -120,15 +120,6 @@ module Homebrew # Extract to destination stage_dir.mkpath UnpackStrategy.detect(downloaded_path).extract_nestedly(to: stage_dir, verbose: true) - - return unless args.git? - - ohai "Setting up Git repository" - cd(stage_dir) do - system "git", "init", "-q" - system "git", "add", "-A" - system "git", "commit", "-q", "-m", "brew-unpack" - end end end end