Merge pull request !2943 from rhodecode-enterprise-ce feature/RCCE-283_long-pull-request-names
feature: implements mid trimming long text; implements repo length truncation
This commit is contained in:
commit
9ff7ebfc3b
21 changed files with 318 additions and 96 deletions
|
|
@ -113,7 +113,7 @@ def get_diff_info(source_repo, source_ref, target_repo, target_ref, get_authors=
|
|||
target_scm = target_repo.scm_instance()
|
||||
|
||||
ancestor_id = target_scm.get_common_ancestor(target_ref, source_ref, source_scm)
|
||||
if not ancestor_id:
|
||||
if not ancestor_id or (isinstance(ancestor_id, str) and ancestor_id.lower() == "none"):
|
||||
raise ValueError(
|
||||
"cannot calculate diff info without a common ancestor. "
|
||||
"Make sure both repositories are related, and have a common forking commit."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue