Permalink
Browse files

update source code url for windows

  • Loading branch information...
1 parent adbbe80 commit 4f488695af79a4b82bfe3a402e0f2c1602b7d1ef @bry4n bry4n committed Sep 26, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −2 app/controllers/downloads_controller.rb
  2. +1 −1 app/views/downloads/downloading.html.haml
@@ -24,13 +24,14 @@ def gui
def download
@platform = params[:platform]
- logger.info @platform
@platform = 'windows' if @platform == 'win'
if @platform == 'windows' || @platform == 'mac'
if @platform == 'windows'
- @project_url = "http://msysgit.github.com/"
+ @project_url = "http://msysgit.github.com/"
+ @source_url = "https://github.com/msysgit/git/"
else
@project_url = "https://github.com/timcharper/git_osx_installer"
+ @source_url = "https://github.com/git/git/"
end
@download = Download.latest_for(@platform)
@@ -15,7 +15,7 @@
%p=raw "<strong>If your download hasn't started, <a href=\"#{@download.url}\">click here to download manually</a>.</strong>"
- %p.small=raw "The current source code release is version <strong>#{@latest.name}</strong>. If you want the newer version, you can build it from <a href=\"https://github.com/git/git\">the source code</a>."
+ %p.small=raw "The current source code release is version <strong>#{@latest.name}</strong>. If you want the newer version, you can build it from <a href=\"#{@source_url}\">the source code</a>."
%iframe{:width => 1, :height => 1, :frameborder => 0, :src => @download.url}

0 comments on commit 4f48869

Please sign in to comment.