summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-01 05:16:38 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-01 05:16:38 +0000
commit6755063664241d02043eb8c12a97c1377cd72e11 (patch)
tree5c15e1a317dc6d3b5705b87454f990ab3bd50974 /lib
parent45fafc7e44db200329fb564dea71042524fc6822 (diff)
downloadredmine-6755063664241d02043eb8c12a97c1377cd72e11.tar.gz
redmine-6755063664241d02043eb8c12a97c1377cd72e11.zip
Support revision without any message in Mercurial repositories (#36258).
Patch by salman mp and Yuichi HARADA. git-svn-id: https://svn.redmine.org/redmine/trunk@21792 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index ad8a435dd..866cd39fe 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -230,7 +230,7 @@ module Redmine
end
),
:time => Time.parse(le['date']['__content__']),
- :message => CGI.unescape(le['msg']['__content__']),
+ :message => CGI.unescape(le['msg']['__content__'] || ''),
:paths => paths,
:parents => parents_ary)
end