Skip to content

Commit

Permalink
fix(model-server): add repository to the list after the first write
Browse files Browse the repository at this point in the history
The v1 model client doesn't initialize a repository using the REST API,
but just starts writing to a branch. This first write should add the
repository to the list returned by the REST API, which wasn't the case.
  • Loading branch information
slisson committed Dec 9, 2023
1 parent ebefec0 commit 29b43c9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class RepositoriesManager(val client: LocalModelClient) {
mergedVersion.hash
}
putVersionHash(branch, mergedHash)
ensureRepositoriesAreInList(setOf(branch.repositoryId))
ensureBranchesAreInList(branch.repositoryId, setOf(branch.branchName))
result = mergedHash
}
Expand Down

0 comments on commit 29b43c9

Please sign in to comment.