Use caching for new entries.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
395b8efef2
commit
9b4b439432
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user