From cfc1821e2c6b0c162cb2d675fae33ca6f08a62bb Mon Sep 17 00:00:00 2001 From: XuehaiPan Date: Tue, 12 Oct 2021 21:58:40 +0800 Subject: [PATCH] tap: fix unexpected wrong variable name --- Library/Homebrew/tap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 8d8a792c40..8e355f6c97 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -384,7 +384,7 @@ class Tap path.git_origin_set_head_auto new_upstream_head = path.git_origin_branch - return if new_upstream_head == old_upstream_head + return if new_upstream_head == current_upstream_head path.git_rename_branch old: current_upstream_head, new: new_upstream_head path.git_branch_set_upstream local: new_upstream_head, origin: new_upstream_head