mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
Merge pull request #6 from overleaf/version-update
Update local version after processing snapshots
This commit is contained in:
@@ -43,10 +43,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 {
|
||||
|
||||
Reference in New Issue
Block a user