I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

0006-Better-default-repository-name-for-GitCreator.patch

Elektritter Messinger, 06 May 2014 12:12

Download (1.45 KB)

View differences:

lib/scm_repositories_helper_patch.rb
218 218
                unless request.post?
219 219
                    path = GitCreator.access_root_url(GitCreator.default_path(@project.identifier))
220 220
                    if GitCreator.repository_exists?(@project.identifier) && @project.respond_to?(:repositories)
221
                        path << '.' + @project.repositories.select{ |r| r.created_with_scm }.size.to_s
221
                        offset = '.'+@project.repositories.select{ |r| r.created_with_scm }.size.to_s
222
                        if GitCreator.options['git_ext']
223
                          path.gsub!('.git',offset+'.git')
224
                        else
225
                          path << offset
226
                        end
222 227
                    end
223 228
                    if defined? observe_field # Rails 3.0 and below
224 229
                        gittags << javascript_tag("$('repository_url').value = '#{escape_javascript(path)}';")
225
- 
Terms of use | Privacy policy