From 15ebb4257905dd2f677db957d51d7a737888c284 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 8 Mar 2011 12:08:56 +0000 Subject: [PATCH] scm: git: add path encoding select box at setting (#5251). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5064 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/repositories_helper.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 593b292dd..3584891ff 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -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?)) + - '
a bare and local repository (e.g. /gitrepo, c:\gitrepo)') + '
a bare and local repository (e.g. /gitrepo, c:\gitrepo)') + + content_tag('p', form.select( + :path_encoding, [nil] + Setting::ENCODINGS, + :label => 'Path encoding') + + '
Default: UTF-8') end def cvs_field_tags(form, repository) -- 2.39.5