- Running 'task sync init' was not clearing the existing backlog.data file.
This commit is contained in:
Paul Beckingham 2013-09-07 23:45:04 -04:00
parent af38b3bb7b
commit 7c356a943c

View file

@ -98,6 +98,10 @@ int CmdSync::execute (std::string& output)
int upload_count = 0;
if (first_time_init)
{
// Delete backlog.data. Because if we're uploading everything, the list of
// deltas is meaningless.
context.tdb2.backlog._file.truncate ();
std::vector <Task> pending = context.tdb2.pending.get_tasks ();
std::vector <Task>::iterator i;
for (i = pending.begin (); i != pending.end (); ++i)