From 2f20d83502f4e8053ac02a999a20cfae53fc5cf0 Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Fri, 9 Nov 2012 17:40:05 +0400 Subject: [PATCH] github_url_to_file fixed --- app/models/app.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/models/app.rb b/app/models/app.rb index 33fa274..a7f6f96 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -125,6 +125,7 @@ class App end def github_url_to_file(file) + file = "/#{file}" unless file.start_with? '/' "#{github_url}/blob/#{repo_branch + file}" end -- libgit2 0.21.2