function hackedProjectWebDevDownloader::git_get_command in Hacked! 8.2
Helper function to return the command to run git on the command line.
Return value
string The command with which to run Git.
2 calls to hackedProjectWebDevDownloader::git_get_command()
- hackedProjectWebDevDownloader::git_checkout in src/
hackedProjectWebDevDownloader.php - Checks out the last Git commit prior to the project's timestamp.
- hackedProjectWebDevDownloader::git_clone in src/
hackedProjectWebDevDownloader.php - Clones a git repository in a temporary directory.
File
- src/
hackedProjectWebDevDownloader.php, line 161
Class
- hackedProjectWebDevDownloader
- Downloads a development snapshot of a project using Git.
Namespace
Drupal\hackedCode
function git_get_command() {
$command = \Drupal::config('hacked.settings')
->get('git_cmd');
return is_null($command) ? 'git' : $command;
}