Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Installer/MoodleInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@
$this->moodle->directory,
];

$this->execute->mustRun(new Process($cmd, null, null, null, null));
// Only run git clone if it does not already exist
if (!is_dir($this->moodle->directory)) {
$this->execute->mustRun(new Process($cmd, null, null, null, null));

Check warning on line 71 in src/Installer/MoodleInstaller.php

View check run for this annotation

Codecov / codecov/patch

src/Installer/MoodleInstaller.php#L71

Added line #L71 was not covered by tests
}

// Expand the path to Moodle so all other installers use absolute path.
$this->moodle->directory = $this->expandPath($this->moodle->directory);
Expand Down