mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
Fixed rpc return value bug
This commit is contained in:
3
views.py
3
views.py
@@ -894,7 +894,8 @@ def repo_history_changes(request, repo_id):
|
||||
changes['cmt_desc'] = repo.desc
|
||||
elif c.second_parent_id is None:
|
||||
# Normal commit only has one parent.
|
||||
changes['cmt_desc'] = c.desc
|
||||
if c.desc.startswith('Changed library'):
|
||||
changes['cmt_desc'] = _('Changed library name or description')
|
||||
else:
|
||||
# A commit is a merge only if it has two parents.
|
||||
changes['cmt_desc'] = _('No conflict in the merge.')
|
||||
|
Reference in New Issue
Block a user