Project

General

Profile

Actions

Defect #13032

open

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

Added by Tobias Joch about 11 years ago. Updated about 11 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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!

Actions #1

Updated by Toshi MARUYAMA about 11 years ago

fatal: unrecognized argument: --stdin

What version is your git?

Actions #2

Updated by Toshi MARUYAMA about 11 years ago

  • Subject changed from Fetch changelogs throws errors -> no rev. and changesets in activities to Git: Fetch changelogs throws errors -> no rev. and changesets in activities
Actions #3

Updated by Tobias Joch about 11 years ago

Toshi MARUYAMA wrote:

fatal: unrecognized argument: --stdin

What version is your git?

git version 1.5.6.5

thx!

Actions #4

Updated by Toshi MARUYAMA about 11 years ago

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.

Actions #5

Updated by Daniel Felix about 11 years ago

  • Status changed from New to Needs feedback

@ Tobias
Is this resolved for you?
Can you confirm, that Redmine works as expected after upgrade?

Actions #6

Updated by Tobias Joch about 11 years ago

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!

Actions #7

Updated by Gabriel Mazetto about 11 years ago

#6566 may help solve this type of problem in the future

Actions

Also available in: Atom PDF