プロジェクト

全般

プロフィール

Vote #73265

未完了

Git: Fetch changelogs throws errors -> no rev. and changesets in activities

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
13032
author_id:
71437
assigned_to_id:
0
comments:
7
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
66
ステータス-->[Needs feedback]

説明

Hi,

after upgrading a redmine installation from 1.2.2 to 2.2.2 (security related) everything is fine with the exception of the git integration.

The repository view shows new files and the correct ages, but no author and revision. Also there are no new changesets in the project activities.

Here are some infos about the installation:

Environment:
  Redmine version                          2.2.2.stable
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.11
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  redmine_backlogs                         v0.9.35

Here is the console output from the fetch_changesets call:

$:/opt/redmine# ruby script/rails runner "Repository.fetch_changesets" -e production
(eval):108: warning: multiple values for a block parameter (0 for 1)
    from /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-3.2.11/lib/action_dispatch/routing/mapper.rb:992
fatal: unrecognized argument: --stdin
fatal: unrecognized argument: --stdin
fatal: unrecognized argument: --stdin
fatal: unrecognized argument: --stdin
fatal: unrecognized argument: --stdin
fatal: unrecognized argument: --stdin
fatal: unrecognized argument: --stdin

And here the corresponding output from the production logfile:

Connecting to database specified by database.yml
OpenIdAuthentication.store is nil. Using in-memory store.
DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from /opt/redmine/plugins/redmine_backlogs/app/models/rb_issue_history.rb:4)
DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from /opt/redmine/plugins/redmine_backlogs/app/models/rb_sprint_burndown.rb:5)
git log error: git exited with non-zero status: 128
git log error: git exited with non-zero status: 128
git log error: git exited with non-zero status: 128
git log error: git exited with non-zero status: 128
git log error: git exited with non-zero status: 128
git log error: git exited with non-zero status: 128

Any ideas?

Best regards!


journals

> fatal: unrecognized argument: --stdin
What version is your git?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> > fatal: unrecognized argument: --stdin
> What version is your git?

git version 1.5.6.5

thx!
--------------------------------------------------------------------------------
Tobias Joch wrote:
> git version 1.5.6.5

Redmine uses "git log --stdin".
source:tags/2.2.2/lib/redmine/scm/adapters/git_adapter.rb#L200

Please upgrade git to recent version.
--------------------------------------------------------------------------------
@ Tobias
Is this resolved for you?
Can you confirm, that Redmine works as expected after upgrade?
--------------------------------------------------------------------------------
Daniel Felix wrote:
> @ Tobias
> Is this resolved for you?
> Can you confirm, that Redmine works as expected after upgrade?

After upgrading git to version 1.7.2 everything is fine. I think the wiki page http://www.redmine.org/projects/redmine/wiki/RedmineRepositories should be updated, right?

Thx for your support!
--------------------------------------------------------------------------------
#6566 may help solve this type of problem in the future
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリSCM_3 にセット

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

いいね!0
いいね!0