https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292018-08-21T09:32:54ZRedmineRedmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867082018-08-21T09:32:54ZAlexandr Kirilov
<ul></ul><p>Git wrapped out by it for covering --no-color issue</p>
<pre>
#!/usr/local/bin/bash
# The latest git version (2.14.1) removes the --no-color option which breaks existing redmine/git
# support. We remove this option from the provided arguments until redmine fixes this,
# presumably in redmine 3.4.3
# Issue #305
REAL_GIT="/usr/local/bin/git"
$REAL_GIT "${@%--no-color}"
</pre> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867092018-08-21T09:34:06ZAlexandr Kirilov
<ul></ul><p>Git version</p>
<pre>
$ /usr/local/sbin/git --version --no-color
git version 2.18.0
</pre> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867332018-08-23T10:41:10ZAlexandr Kirilov
<ul></ul><p><a class="external" href="https://www.redmine.org/boards/2/topics/55693">https://www.redmine.org/boards/2/topics/55693</a> - there are explanation of what happening on my server</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867342018-08-23T10:42:38ZAlexandr Kirilov
<ul></ul><p>My env</p>
<pre>
$ env RAILS_ENV="production" rake about
About your application's environment
Rails version 4.2.8
Ruby version 2.4.4-p296 (amd64-freebsd11)
RubyGems version 2.7.7
Rack version 1.6.10
Middleware Rack::Sendfile, Rack::ContentLength, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000008108bb268>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag, RequestStore::Middleware, OpenIdAuthentication
Application root /projects/www/redmine
Environment production
Database adapter mysql2
Database schema version 20170419144536
</pre>
<p>The output of command that I found</p>
<pre>
$ /projects/www/redmine/bin/rails runner "Repository.fetch_changesets" -e production
fatal: '' is not a valid branch name.
</pre>
<p>The log file line</p>
<pre>
git log error: git exited with non-zero status: 128
</pre> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867352018-08-23T10:46:04ZAlexandr Kirilov
<ul></ul><p>I've been trying to fix it like over here <a class="external" href="https://www.redmine.org/issues/12505">https://www.redmine.org/issues/12505</a> - nothing has happened</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867382018-08-23T12:19:18ZAlexandr Kirilov
<ul></ul><p>Just tried to make version downgrade. The same issue for every version to 3.4.2 stable</p>
<pre>
$ /projects/www/redmine/bin/rails runner "Repository.fetch_changesets" -e production
fatal: '' is not a valid branch name.
</pre>
<pre>
Environment:
Redmine version 3.4.2.stable
Ruby version 2.4.4-p296 (2018-03-28) [amd64-freebsd11]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Git 2.18.0
Filesystem
Redmine plugins:
no plugin installed
</pre> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867392018-08-23T12:21:49ZAlexandr Kirilov
<ul></ul><p>Does anyone reading it?</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867792018-08-26T12:18:05ZMarius BĂLTEANU
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li><li><strong>Assignee</strong> set to <i>Alexandr Kirilov</i></li></ul><p>Yes, it does, but we cannot check immediately all the reported issues. Please have some patience.</p>
<p>I'm not sure that I understand correctly your issue.</p>
<p>1. I didn't find anything official about "The latest git version (2.14.1) removes the --no-color option...". Can you provide a link? Also, the "--no-color" option appears in the commands used by Redmine:<br />- <a class="external" href="https://git-scm.com/docs/git-branch#git-branch---no-color">https://git-scm.com/docs/git-branch#git-branch---no-color</a><br />- <a class="external" href="https://git-scm.com/docs/git-log#git-log---no-color">https://git-scm.com/docs/git-log#git-log---no-color</a><br />- <a class="external" href="https://git-scm.com/docs/git-diff#git-diff---no-color">https://git-scm.com/docs/git-diff#git-diff---no-color</a></p>
<p>2. I've just installed the latest git version on my development environment and all the tests pass.</p>
<p>3. The method "Repository.fetch_changesets " runs successfully:</p>
<pre>
irb(main):005:0> Repository.last.fetch_changesets
Repository Load (0.4ms) SELECT `repositories`.* FROM `repositories` ORDER BY `repositories`.`id` DESC LIMIT 1
Shelling out: 'git' --version
Shelling out: 'git' '--git-dir' 'tmp/test/git_repository' '-c' 'core.quotepath=false' '-c' 'log.decorate=no' 'branch' '--no-color' '--verbose' '--no-abbrev'
=> nil
</pre> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867802018-08-26T12:33:52ZAlexandr Kirilov
<ul></ul><p>Thanks for reply. I do appreciate it.</p>
<p>My environment:</p>
<p>FreeBSD 11.2<br />Git 2.18 (Mentioned in my post, I suppose you are not tried it on the same environment because you are mentioning Git 2.14 - suppose Linux)<br />Git covered by Gitolite for access via SSH<br />Ruby (been testing huge variation from 2.2 to lates 2.4 within huge list of variations of gems and Rails)<br />MySQL (version from 5.5 to 8.0)<br />Apache 24<br />Redmine version from 3.2 to lates from tar.gz archives and Github repo with using stable branches.</p>
<p>Redmine manifest for versions has conflict from begin:<br />MySQL working good from 5.0 to 5.3 - the lower available version for FreeBSD OS is 5.5<br />And other small issues.</p>
<p>In my post I've been mentioning about solution for wrapping Git there are BASH script that is cutting out this parameter, found in Stackoverflow.</p>
<p>For now no any interest in it since yestreday. I am so sorry, but migrated to Jira, yesterday installed. 4 weeks of seeking and researching for solution - very expensive for me. More then 100USD for small company Jira license for 2 years. I am so sorry after 5 years of using Redmine stopped.</p>
<p>Best regards.</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867832018-08-26T18:57:47ZMarius BĂLTEANU
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/26645">Defect #26645</a>: git 2.14 compatibility</i> added</li></ul> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=867852018-08-26T18:58:11ZMarius BĂLTEANU
<ul></ul><p>Alexandr Kirilov wrote:</p>
<blockquote>
<p>Thanks for reply. I do appreciate it.</p>
<p>My environment:</p>
<p>FreeBSD 11.2<br />Git 2.18 (Mentioned in my post, I suppose you are not tried it on the same environment because you are mentioning Git 2.14 - suppose Linux)<br />Git covered by Gitolite for access via SSH<br />Ruby (been testing huge variation from 2.2 to lates 2.4 within huge list of variations of gems and Rails)<br />MySQL (version from 5.5 to 8.0)<br />Apache 24<br />Redmine version from 3.2 to lates from tar.gz archives and Github repo with using stable branches.</p>
<p>Redmine manifest for versions has conflict from begin:<br />MySQL working good from 5.0 to 5.3 - the lower available version for FreeBSD OS is 5.5<br />And other small issues.</p>
</blockquote>
<p>My environment is a Docker with Debian 9, Ruby 2.4.4, MySQL 5.7 and git 2.18.</p>
<blockquote>
<p>In my post I've been mentioning about solution for wrapping Git there are BASH script that is cutting out this parameter, found in Stackoverflow.</p>
<p>For now no any interest in it since yestreday. I am so sorry, but migrated to Jira, yesterday installed. 4 weeks of seeking and researching for solution - very expensive for me. More then 100USD for small company Jira license for 2 years. I am so sorry after 5 years of using Redmine stopped.</p>
<p>Best regards.</p>
</blockquote>
<p>Sorry for hearing this, if you want to investigate more I need a demo repository for which you receive the error. Maybe is other problem.</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=897792019-02-03T18:24:03ZMarius BĂLTEANU
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>Please reopen if you still using Redmine and you experience the issue on the latest Redmine versions.</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=942262019-10-06T21:53:22ZTars Eg
<ul><li><strong>File</strong> <a href="/attachments/24077">new-234.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/24077/new-234.png">new-234.png</a> added</li></ul><p>I have this issue. Remine version 4.0.4. Redmine doesn't show the latest revision list. If I click “View all revisions”, only the first commit is shown.</p>
<p>My Redmine has multiple projects, each with its own Git repository. In all other projects Redmine works fine and shows the revisions.</p>
<p><img src="https://www.redmine.org/attachments/download/24077/new-234.png" alt="" /></p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=942542019-10-07T21:03:31ZMarius BĂLTEANU
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Tars Eg wrote:</p>
<blockquote>
<p>I have this issue. Remine version 4.0.4. Redmine doesn't show the latest revision list. If I click “View all revisions”, only the first commit is shown.</p>
<p>My Redmine has multiple projects, each with its own Git repository. In all other projects Redmine works fine and shows the revisions.</p>
<p><img src="https://www.redmine.org/attachments/download/24077/new-234.png" alt="" /></p>
</blockquote>
<p>Can you provide a test repository that can be used to reproduce the problem?</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=942562019-10-08T00:03:14ZTars Eg
<ul></ul><blockquote>
<p>Can you provide a test repository that can be used to reproduce the problem?</p>
</blockquote>
<p>Absolutely. Though since I observe the problem only in one repository, I am not sure if creating a test repository will reproduce the issue. I can give you an access to the real one. I just wonder how we can exchange access or contact information. Everything is public here.</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=942572019-10-08T00:24:34ZTars Eg
<ul></ul><p>Tars Eg wrote:</p>
<blockquote><blockquote>
<p>Can you provide a test repository that can be used to reproduce the problem?</p>
</blockquote>
<p>Absolutely. Though since I observe the problem only in one repository, I am not sure if creating a test repository will reproduce the issue. I can give you an access to the real one. I just wonder how we can exchange access or contact information. Everything is public here.</p>
</blockquote>
<p>I have an idea. I temporarily turned on self registration on my Redmine. Can you go to ooooooooo and register? Then I will see your email and we will be able to talk about access to the problem repository. Will it do?</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=1021702021-04-21T21:02:02ZAngel Grimas
<ul></ul><p>Hi. Does somebody have any solution about this issue? I have the same problem but next set configuration:</p>
<p><em><strong>Environment:<br /> Redmine version 4.1.1.stable<br /> Ruby version 2.5.8-p224 (2020-03-31) [x64-mingw32]<br /> Rails version 5.2.4.2<br /> Environment production<br /> Database adapter Mysql2<br /> Mailer queue ActiveJob::QueueAdapters::AsyncAdapter<br /> Mailer delivery smtp<br />SCM:<br /> Git 2.27.0<br /> Filesystem <br />Redmine plugins:<br /> no plugin installed</strong></em></p>
<p>Usually the other projects show "git repository" completly but only one project repository does not show the completed "git log" and "commits" changes.</p>
<p>Any suggestions ?</p> Redmine - Defect #29416: Do not show Git revisions https://www.redmine.org/issues/29416?journal_id=1077712022-09-01T12:38:05ZErik E
<ul></ul><p>Angel Grimas wrote:</p>
<blockquote>
<p>Any suggestions ?</p>
</blockquote>
<p>If you still have this issue you could take a look at<br /><a class="message" href="https://www.redmine.org/boards/2/topics/62046">How to reinit "Latest revisions" (changesets) for repository</a> and maybe <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Git: fetch_changesets returns a fatal error (Closed)" href="https://www.redmine.org/issues/12505">#12505</a></p>