プロジェクト

全般

プロフィール

Vote #65053

完了

Mercurial (Hg) integration doesn't work if redmine is installed in folder path containing space

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2009/04/11
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
10
issue_org_id:
3159
author_id:
5045
assigned_to_id:
0
comments:
5
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Mercurial (Hg) integration doesn't work if redmine is installed in folder path containing space. The problem is because the template file path is not properly quoted. (e.g. "C:/Program Files/BitNami Redmine Stack/apps/redmine/lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl" )

affected branch: 0.8-stable
affected revision: svn r2670
affected file:
http://www.redmine.org/projects/redmine/repository/revisions/2670/entry/branches/0.8-stable/lib/redmine/scm/adapters/mercurial_adapter.rb
affected line: 108

Note: I am beginner in Ruby and redmine. The patch I attached will only quote the path and won't convert forward slash to backslash. Please adjust the patch as deemed necessary.


journals

--------------------------------------------------------------------------------
the syndrome is the following error when trying to access Mercurial repository

undefined method `last’ for nil:NilClass
RAILS_ROOT: C:/Program Files/BitNami Redmine Stack/apps/redmine
lib/redmine/scm/adapters/mercurial_adapter.rb:72:in `info’
lib/redmine/scm/adapters/abstract_adapter.rb:150:in `retrieve_root_url’
lib/redmine/scm/adapters/abstract_adapter.rb:54:in `initialize’
app/models/repository.rb:41:in `new’
app/models/repository.rb:41:in `scm’
app/models/repository/mercurial.rb:56:in `fetch_changesets’
app/controllers/repositories_controller.rb:69:in `show’
--------------------------------------------------------------------------------
added patch
--------------------------------------------------------------------------------
Fix committed in r2679.
Thanks for pointing this out.
--------------------------------------------------------------------------------
Merged in 0.8-stable in r2681.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

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

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

いいね!0
いいね!0