From 50a43cf6780cc5380bb00d192296d91ebb3cddc9 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 25 May 2018 22:47:31 +0200 Subject: [PATCH] Reset `repo_var` in `clear_cache`. --- Library/Homebrew/compat/tap.rb | 3 +-- Library/Homebrew/tap.rb | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/compat/tap.rb b/Library/Homebrew/compat/tap.rb index 1fd53058a5..df720e35eb 100644 --- a/Library/Homebrew/compat/tap.rb +++ b/Library/Homebrew/compat/tap.rb @@ -15,10 +15,9 @@ class Tap old_path = path old_remote = path.git_origin + clear_cache super(new_user, new_repo) - @repo_var = nil - new_initial_revision_var = "HOMEBREW_UPDATE_BEFORE#{repo_var}" new_current_revision_var = "HOMEBREW_UPDATE_AFTER#{repo_var}" diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index eec9c175ab..fa167c5a89 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -84,6 +84,7 @@ class Tap # clear internal cache def clear_cache @remote = nil + @repo_var = nil @formula_dir = nil @cask_dir = nil @formula_files = nil