aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 9c63a35ff..9609e608e 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -130,7 +130,7 @@ class Formula
@name=name
validate_variable :name
- @path=path
+ @path = path.nil? ? nil : Pathname.new(path)
set_instance_variable 'version'
@version ||= @spec_to_use.detect_version