mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Don't show "master (branched from master)" in UI
Summary: Ref T3462. If someone works directly on `master`, we currently show "Branch: master (branched from master)" in the UI. Although this is sort of technically accurate, it is confusing. Instead, just show "Branch: master" in this situation. Test Plan: Saw "master" instead of "master (branched from master)". Reviewers: chad Reviewed By: chad Maniphest Tasks: T3462 Differential Revision: https://secure.phabricator.com/D14829
This commit is contained in:
parent
dbb84f1ddc
commit
8a81d208c4
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ final class DifferentialBranchField
|
||||||
return pht('%s (bookmark)', $bookmark);
|
return pht('%s (bookmark)', $bookmark);
|
||||||
} else if (strlen($branch)) {
|
} else if (strlen($branch)) {
|
||||||
$onto = $diff->loadTargetBranch();
|
$onto = $diff->loadTargetBranch();
|
||||||
if (strlen($onto)) {
|
if (strlen($onto) && ($onto !== $branch)) {
|
||||||
return pht(
|
return pht(
|
||||||
'%s (branched from %s)',
|
'%s (branched from %s)',
|
||||||
$branch,
|
$branch,
|
||||||
|
|
Loading…
Reference in a new issue