From 17fae9ab406edcd25fca186b1abcf4259b894ecb Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 12 Dec 2012 16:45:27 +1300 Subject: [PATCH] Fixed GitHub and Bitbucket urls to files --- app/models/app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/app.rb b/app/models/app.rb index 33fa274..2f9fb2a 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -125,7 +125,7 @@ class App end def github_url_to_file(file) - "#{github_url}/blob/#{repo_branch + file}" + "#{github_url}/blob/#{repo_branch}/#{file}" end def bitbucket_repo? @@ -137,7 +137,7 @@ class App end def bitbucket_url_to_file(file) - "#{bitbucket_url}/src/#{repo_branch + file}" + "#{bitbucket_url}/src/#{repo_branch}/#{file}" end -- libgit2 0.21.2