Skip to content

Commit 6645714

Browse files
author
root
committed
Fix #226
1 parent 57cd0f6 commit 6645714

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: app/views/repositories/_download_revision.erb

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
<ul>
88
<li>
99
<%= link_to "<i class=\"fa fa-download\"></i>".html_safe + l(:label_download_format, :archive_format => '.tar'),
10-
download_git_revision_path(@repository.id, @rev, :download_format => 'tar'),
10+
download_git_revision_path(@repository.id, :rev => @rev, :download_format => 'tar'),
1111
:class => 'button' %>
1212
</li>
1313

1414
<li>
1515
<%= link_to "<i class=\"fa fa-download\"></i>".html_safe + l(:label_download_format, :archive_format => '.tar.gz'),
16-
download_git_revision_path(@repository.id, @rev, :download_format => 'tar.gz'),
16+
download_git_revision_path(@repository.id, :rev => @rev, :download_format => 'tar.gz'),
1717
:class => 'button' %>
1818
</li>
1919

2020
<li>
2121
<%= link_to "<i class=\"fa fa-download\"></i>".html_safe + l(:label_download_format, :archive_format => '.zip'),
22-
download_git_revision_path(@repository.id, @rev, :download_format => 'zip'),
22+
download_git_revision_path(@repository.id, :rev => @rev, :download_format => 'zip'),
2323
:class => 'button' %>
2424
</li>
2525
</ul>

Diff for: config/routes.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
match 'repositories/:repository_id/mirrors/:id/push', :to => 'repository_mirrors#push', :via => [:get], :as => 'push_to_mirror'
88

9-
match 'repositories/:repository_id/download_revision/:rev', :to => 'download_git_revision#index',
10-
:via => [:get],
11-
:as => 'download_git_revision'
9+
match 'repositories/:repository_id/download_revision', :to => 'download_git_revision#index',
10+
:via => [:get],
11+
:as => 'download_git_revision'
1212

1313
resources :repositories do
1414
constraints(repository_id: /\d+/, id: /\d+/) do

0 commit comments

Comments
 (0)