diff --git a/lib/clone_git_file.rb b/lib/clone_git_file.rb index 7d37c90..a4d753d 100644 --- a/lib/clone_git_file.rb +++ b/lib/clone_git_file.rb @@ -30,7 +30,7 @@ def parsed_data end def local_repo_path - @local_repo_path ||= "#{ENV["TARGET_DIRECTORY"]}/#{parsed_data.github_username}/#{parsed_data.repo_name}" + @local_repo_path ||= File.expand_path("#{ENV["TARGET_DIRECTORY"]}/#{parsed_data.github_username}/#{parsed_data.repo_name}") end def launch_editor