]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add path encoding select box at setting (#5251).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 12:08:56 +0000 (12:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 12:08:56 +0000 (12:08 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5064 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/repositories_helper.rb

index 593b292dd94fc0b42bc390db2c8dfeab9360c587..3584891ff2c2ae7f2a01bee9def50b53210fa698 100644 (file)
@@ -219,10 +219,14 @@ module RepositoriesHelper
   end
 
   def git_field_tags(form, repository)
-      content_tag('p', form.text_field(:url, :label => 'Path to repository',
+    content_tag('p', form.text_field(:url, :label => 'Path to repository',
                        :size => 60, :required => true,
                        :disabled => (repository && !repository.root_url.blank?)) +
-                       '<br />a bare and local repository (e.g. /gitrepo, c:\gitrepo)')
+                       '<br />a bare and local repository (e.g. /gitrepo, c:\gitrepo)') +
+    content_tag('p', form.select(
+                        :path_encoding, [nil] + Setting::ENCODINGS,
+                        :label => 'Path encoding') +
+                        '<br />Default: UTF-8')
   end
 
   def cvs_field_tags(form, repository)