opnsense-ports/devel/arcanist-lib/files/patch-src_workflow_ArcanistDiffWorkflow.php
Franco Fichtner fb17078f21 */*: sync with upstream
Taken from: FreeBSD
2023-01-10 19:10:29 +01:00

11 lines
483 B
PHP

--- src/workflow/ArcanistDiffWorkflow.php.orig 2023-01-09 21:24:25 UTC
+++ src/workflow/ArcanistDiffWorkflow.php
@@ -2361,7 +2361,7 @@ EOTEXT
// If we track an upstream branch either directly or indirectly, use that.
$branch = $api->getBranchName();
- if (strlen($branch)) {
+ if (strlen($branch ?? '')) {
$upstream_path = $api->getPathToUpstream($branch);
$remote_branch = $upstream_path->getRemoteBranchName();
if ($remote_branch !== null) {