Reset repo_var in clear_cache.

This commit is contained in:
Markus Reiter 2018-05-25 22:47:31 +02:00
parent e4c02fafda
commit 50a43cf678
2 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -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