プロジェクト

全般

プロフィール

Vote #74891

完了

Repository.fetch_changesets > app/models/repository/git.rb:137:in `[]=': string not matched (IndexError)

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
78
issue_org_id:
16032
author_id:
39868
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
73
ステータス-->[Closed]

説明

h3. 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

h3. 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.


journals

This should be fixed in r12848.
--------------------------------------------------------------------------------
Wow -- impressive turnaround -- thanks!

(suggestions on how to "limp through" until fixed?)
--------------------------------------------------------------------------------
Setting the @repositories.extra_info@ column to NULL for the incriminated repository should prevent this error.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン2.4.3_78 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0