Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/093.gitremotes.php
Context not available. | |||||
$details = json_decode($repo['details'], true); | $details = json_decode($repo['details'], true); | ||||
$old = idx($details, 'default-branch', ''); | $old = idx($details, 'default-branch', ''); | ||||
if (strpos($old, '/') === false) { | if (@strpos($old, '/') === false) { | ||||
continue; | continue; | ||||
} | } | ||||
$parts = explode('/', $old); | $parts = @explode('/', $old); | ||||
$parts = array_filter($parts); | $parts = array_filter($parts); | ||||
$new = end($parts); | $new = end($parts); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0