Commit 3f5690c7 authored by Fabio Pelosin's avatar Fabio Pelosin

[UI] Robustness for ::path

parent d3a7c80b
......@@ -145,7 +145,9 @@ module Pod
#
def path(pathname)
if pathname
path = pathname.relative_path_from((config.podfile_path.dirname if config.podfile_path) || Pathname.pwd)
from_path = config.podfile_path.dirname if config.podfile_path
from_path ||= Pathname.pwd
path = Pathname(pathname).relative_path_from(from_path)
"`#{path}`"
else
''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment