Show More
@@ -2298,7 +2298,7 b' class Repository(Base, BaseModel):' | |||
|
2298 | 2298 | |
|
2299 | 2299 | def update_commit_cache(self, cs_cache=None, config=None): |
|
2300 | 2300 | """ |
|
2301 |
Update cache of last c |
|
|
2301 | Update cache of last commit for repository, keys should be:: | |
|
2302 | 2302 | |
|
2303 | 2303 | source_repo_id |
|
2304 | 2304 | short_id |
@@ -2319,7 +2319,7 b' class Repository(Base, BaseModel):' | |||
|
2319 | 2319 | empty = scm_repo is None or scm_repo.is_empty() |
|
2320 | 2320 | if not empty: |
|
2321 | 2321 | cs_cache = scm_repo.get_commit( |
|
2322 | pre_load=["author", "date", "message", "parents"]) | |
|
2322 | pre_load=["author", "date", "message", "parents", "branch"]) | |
|
2323 | 2323 | else: |
|
2324 | 2324 | cs_cache = EmptyCommit() |
|
2325 | 2325 |
General Comments 0
You need to be logged in to leave comments.
Login now