class Git (View source)

Properties

protected IOInterface $io
protected Config $config
protected ProcessExecutor $process
protected Filesystem $filesystem

Methods

__construct(IOInterface $io, Config $config, ProcessExecutor $process, Filesystem $fs)

No description

runCommand($commandCallable, $url, $cwd, $initialClone = false)

No description

syncMirror($url, $dir)

No description

fetchRefOrSyncMirror($url, $dir, $ref)

No description

static 
cleanEnv()

No description

static 
getGitHubDomainsRegex(Config $config)

No description

static 
sanitizeUrl($message)

No description

string|null
getVersion()

Retrieves the current git version.

Details

__construct(IOInterface $io, Config $config, ProcessExecutor $process, Filesystem $fs)

Parameters

IOInterface $io
Config $config
ProcessExecutor $process
Filesystem $fs

runCommand($commandCallable, $url, $cwd, $initialClone = false)

Parameters

$commandCallable
$url
$cwd
$initialClone

syncMirror($url, $dir)

Parameters

$url
$dir

fetchRefOrSyncMirror($url, $dir, $ref)

Parameters

$url
$dir
$ref

static cleanEnv()

static getGitHubDomainsRegex(Config $config)

Parameters

Config $config

static sanitizeUrl($message)

Parameters

$message

string|null getVersion()

Retrieves the current git version.

Return Value

string|null The git version number.