fixed assertion on dry-runs

pull/40/head
Nestal Wan 2012-06-18 23:17:28 +08:00
parent dfe89b19b9
commit 023c208d85
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ void Resource::Sync( http::Agent *http, const http::Header& auth )
void Resource::SyncSelf( http::Agent* http, const http::Header& auth )
{
assert( !IsRoot() || m_state == sync ) ; // root is already sync
assert( IsRoot() || fs::is_directory( m_parent->Path() ) ) ;
assert( !IsRoot() || m_state == sync ) ; // root is always sync
assert( IsRoot() || http == 0 || fs::is_directory( m_parent->Path() ) ) ;
assert( IsRoot() || m_parent->m_state != remote_deleted ) ;
assert( IsRoot() || m_parent->m_state != local_deleted ) ;