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)