Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/binary/PhutilGitBinaryAnalyzer.php
Context not available. | |||||
} | } | ||||
public static function parseGitBinaryVersion($stdout) { | public static function parseGitBinaryVersion($stdout) { | ||||
if (preg_match('/^git version /', $stdout)) { | if (@preg_match('/^git version /', $stdout)) { | ||||
$version = substr($stdout, strlen('git version ')); | $version = @substr($stdout, @strlen('git version ')); | ||||
$version = trim($version); | $version = trim($version); | ||||
return $version; | return $version; | ||||
} | } | ||||
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