We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couscous currently doesn't cache the template.
This has two disadvantages:
(*) It is possible though to checkout the template repository locally and provide this path as a file:// url.
file://
Caching the template repository would solve these problems:
// FetchRemoteTemplate.php private function fetchGitTemplate($gitUrl) { $this->logger->notice('Fetching template from {url}', ['url' => $gitUrl]); $gitUrlHash = sha1($gitUrl); $directory = getcwd() . '/.couscous/templates/' . $gitUrlHash; $this->git->cloneOrUpdateRepository($gitUrl, $directory); return $directory; }
// Git.php public function cloneOrUpdateRepository($url, $directory) { if (!file_exists($directory)) { $this->commandRunner->run("git clone $url $directory"); } else { $this->commandRunner->run("cd $directory; git reset --hard; git pull; cd " . getcwd()); } }
What do you think of this?
The text was updated successfully, but these errors were encountered:
Sounds like a very good idea! (sorry for the delay)
Sorry, something went wrong.
(FYI there's the Git helper for doing git operations)
Git
No branches or pull requests
Couscous currently doesn't cache the template.
This has two disadvantages:
(*) It is possible though to checkout the template repository locally and provide this path as a
file://
url.Caching the template repository would solve these problems:
What do you think of this?
The text was updated successfully, but these errors were encountered: