Use caching for new entries.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tastytea 2020-10-17 01:55:29 +02:00
parent 395b8efef2
commit 9b4b439432
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -37,14 +37,14 @@ int main()
{
cout << "Content-Type: text/plain; charset=utf-8\r\n\r\n";
git::init();
git::init(true);
gitea::init();
try
{
const entry_type entry{cgi::parse_formdata()};
git::clone();
git::update_cached_repo();
git::create_branch();
git::commit(entry);
git::push();
@ -66,7 +66,7 @@ int main()
}
gitea::cleanup();
git::cleanup();
git::cleanup(true);
return 0;
}