Project

General

Profile

Actions

Defect #26645

closed

git 2.14 compatibility

Added by Philip Taffner over 6 years ago. Updated over 6 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

There is no "--no-color" argument for "git version" anymore.

Potential fix:

Index: lib/redmine/scm/adapters/git_adapter.rb
===================================================================
--- lib/redmine/scm/adapters/git_adapter.rb     (revision 16828)
+++ lib/redmine/scm/adapters/git_adapter.rb     (working copy)
@@ -54,7 +54,7 @@
           end

           def scm_version_from_command_line
-            shellout("#{sq_bin} --version --no-color") { |io| io.read }.to_s
+            shellout("#{sq_bin} --version") { |io| io.read }.to_s
           end
         end

Related issues

Related to Redmine - Defect #5324: Git not working if color.ui is enabledClosedJean-Baptiste Barth2010-04-15

Actions
Related to Redmine - Defect #29416: Do not show Git revisions ReopenedAlexandr Kirilov

Actions
Has duplicate Redmine - Defect #26765: Redmine 3.3.3.stable Cannot find binary for Git 2.14 Closed

Actions
Actions

Also available in: Atom PDF