OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Ensure git commands output the full commit sha
Christophe Bliardf3625b62e204
diff --git a/lib/open_project/scm/adapters/git.rb b/lib/open_project/scm/adapters/git.rbindex 05e4d56c35d..417c96878e1 100644--- a/lib/open_project/scm/adapters/git.rb+++ b/lib/open_project/scm/adapters/git.rb@@ -275,7 +275,7 @@ module OpenProjectdef lastrev(path, rev)return nil if path.nil?- args = %w|log --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|+ args = %w|log --no-abbrev-commit --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|args << rev if revargs << '--' << path unless path.empty?lines = capture_git(args).lines@@ -387,7 +387,7 @@ module OpenProjectenddef build_revision_args(path, identifier_from, identifier_to, options)- args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|+ args = %w|log --no-abbrev-commit --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|args << '--reverse' if options[:reverse]args << '--all' if options[:all]args << '-n' << options[:limit].to_i.to_s if options[:limit]@@ -404,9 +404,9 @@ module OpenProjectdef diff(path, identifier_from, identifier_to = nil)args = []if identifier_to- args << 'diff' << '--no-color' << identifier_to << identifier_from+ args << 'diff' << '--no-abbrev-commit' << '--no-color' << identifier_to << identifier_fromelse- args << 'show' << '--no-color' << identifier_from+ args << 'show' << '--no-abbrev-commit' << '--no-color' << identifier_fromendargs << '--' << scm_encode(@path_encoding, 'UTF-8', path) unless path.empty?capture_git(args).lines