mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 16:34:28 +00:00
Update local version after processing snapshots
This commit is contained in:
parent
dcaf2d0fa6
commit
937d9c82b4
1 changed files with 3 additions and 1 deletions
|
@ -42,10 +42,12 @@ public class DataStore {
|
|||
|
||||
public void updateProjectWithName(String name, Repository repository) throws IOException, SnapshotPostException, GitAPIException {
|
||||
LinkedList<Snapshot> snapshots = snapshotFetcher.getSnapshotsForProjectAfterVersion(name, persistentStore.getLatestVersionForProject(name));
|
||||
|
||||
makeCommitsFromSnapshots(name, repository, snapshots);
|
||||
|
||||
if (!snapshots.isEmpty()) {
|
||||
persistentStore.setLatestVersionForProject(name, snapshots.getLast().getVersionID());
|
||||
}
|
||||
makeCommitsFromSnapshots(name, repository, snapshots);
|
||||
}
|
||||
|
||||
private void makeCommitsFromSnapshots(String name, Repository repository, List<Snapshot> snapshots) throws IOException, GitAPIException {
|
||||
|
|
Loading…
Reference in a new issue