Closed mzampare closed 2 years ago
In order to try and debug this, I've updated the Gem and its dependencies to
It looks like it's due to commit.files.preload(:file_todos)
, at the time that it's generating the reports, so I'm wondering if the latest versions of Activerecord or Sqlite may have fixed your issue. Can you pull the latest master
and try?
Alternatively you could get rid of :file_todos
on line 12 of files_with_revisions_and_sizes.rb
, it should still work fine but it might be a lot slower...
The latest changes (which we deployed) fixed the problem, thanks a lot. Merry Christmas & Happy New year.
Fixed.
Hi all,
We imported the latest version of a larger project (> 1300 files in the first commit) into a git repository. statgit has trouble with that repository and produces a database error because it creates a too long list of parameters in its query.
This is the statgit command:
bundle exec ruby generate.rb --workspace cop.workspace/ \ --urlhttps://gitlab.eso.org/dfs/cop \ --database db/databasecop.sqlite3
Which eventually produces the following output (some line breaks inserted in the failing SQL statement, and long list (>1300) of “?” shortened):
[…]
thanks for any help.