Actions
Defect #16032
closedRepository.fetch_changesets > app/models/repository/git.rb:137:in `[]=': string not matched (IndexError)
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Issue¶
$ nice ruby script/rails runner "Repository.fetch_changesets" -e production sh: 1: svn: not found /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/commands/runner.rb:53: /mnt/wwwvolume1/ror/redmine-2.3/app/models/repository/git.rb:137:in `[]=': string not matched (IndexError) from /mnt/wwwvolume1/ror/redmine-2.3/app/models/repository/git.rb:137:in `fetch_changesets' from /mnt/wwwvolume1/ror/redmine-2.3/app/models/repository.rb:333:in `fetch_changesets' from /var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:89:in `each' from /var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:89:in `send' from /var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:89:in `method_missing' from /mnt/wwwvolume1/ror/redmine-2.3/app/models/repository.rb:331:in `fetch_changesets' from /mnt/wwwvolume1/ror/redmine-2.3/app/models/repository.rb:330:in `each' from /mnt/wwwvolume1/ror/redmine-2.3/app/models/repository.rb:330:in `fetch_changesets' from (eval):1 from /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:64:in `eval' from /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/commands/runner.rb:53 from /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:64:in `require' from /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:64 from script/rails:6:in `require' from script/rails:6
Command taken from: http://www.redmine.org/projects/redmine/wiki/HowTo_setup_automatic_refresh_of_repositories_in_Redmine_on_commit
Environment¶
Environment: Redmine version 2.3.3.stable Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux] Rails version 3.2.13 Environment production Database adapter Mysql2 Redmine plugins: redmine_watcher_groups 0.0.1
$ git version git version 1.7.9.5
git is the only Enabled SCM I have enabled in Settings.
the local repositories I have setup and wired in are clone --mirror
copies.
Updated by Jean-Philippe Lang almost 11 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.4.3
- Resolution set to Fixed
This should be fixed in r12848.
Updated by alan blount almost 11 years ago
Wow -- impressive turnaround -- thanks!
(suggestions on how to "limp through" until fixed?)
Updated by Jean-Philippe Lang almost 11 years ago
Setting the repositories.extra_info
column to NULL for the incriminated repository should prevent this error.
Actions