Commits

Dusan Hornik committed 156440a

BBC-338 Reset lastNode on full sync

Comments (0)

Files changed (1)

jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/sync/impl/DefaultSynchronisationOperation.java

         {
             // we are doing full sync, lets delete all existing changesets
             changesetService.removeAllInRepository(repository.getId());
+            repository.setLastChangesetNode(null);
+            repositoryService.save(repository);
         }
 
         int changesetCount = 0;
             progress.inProgress(changesetCount, jiraCount, synchroErrorCount);
         }
         
+        // TODO, update last commit day (or display something else in UI)
+        
         setupNewLinkers(foundProjectKeys);
     }