mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 12:40:22 +00:00
Handle the case superclass is a subclass of Formula
This commit is contained in:
@@ -240,7 +240,7 @@ module Homebrew
|
||||
def github_info(f)
|
||||
return f.path if f.tap.blank? || f.tap.remote.blank?
|
||||
|
||||
path = if f.class.superclass == Formula
|
||||
path = if f.is_a?(Formula)
|
||||
f.path.relative_path_from(f.tap.path)
|
||||
elsif f.is_a?(Cask::Cask)
|
||||
f.sourcefile_path.relative_path_from(f.tap.path)
|
||||
|
||||
Reference in New Issue
Block a user