diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/snapshot/SnapshotApiFacade.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/snapshot/SnapshotApiFacade.java index 9bbcf09142..6f07b7e924 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/snapshot/SnapshotApiFacade.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/snapshot/SnapshotApiFacade.java @@ -97,7 +97,7 @@ public class SnapshotApiFacade { = api.getSavedVers(oauth2, projectName); GetDocResult latestDoc = SnapshotApi.getResult(getDoc); int latest = latestDoc.getVersionID(); - if (latest > version) { + if (latest > version || (latest == 0 && version == 0)) { for ( SnapshotInfo snapshotInfo : SnapshotApi.getResult(savedVers).getSavedVers()