jira-importer commented on issue #421:
URL: https://github.com/apache/maven-scm/issues/421#issuecomment-2964593417

   **[Mike 
Perham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mperham)** 
commented
   
   Jeff, better?
   
       // Use a simple heuristic to determine if we should use the Force flag
       // on sync.  Forcing sync is a HUGE performance hit but is required in
       // rare instances where a source directory is deleted.  If the target
       // directory is completely empty, assume a force is required.  If
       // not empty, we assume a previous checkout was already done and a normal
       // sync will suffice.
       // SCM-110
       if ( workingDirectory.list().length == 0 ) {
           // We need to force so checkout to an empty directory will work.
           command.createArgument().setValue( "-f" );
       }
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to