##// END OF EJS Templates
remap-rescan: prevent empty/damaged repos to break the remap operation.
marcink -
r3403:c7192866 default
parent child
Show More
@@ -2276,7 +2276,7 class Repository(Base, BaseModel):
2276 # use no-cache version here
2276 # use no-cache version here
2277 scm_repo = self.scm_instance(cache=False, config=config)
2277 scm_repo = self.scm_instance(cache=False, config=config)
2278
2278
2279 empty = scm_repo.is_empty()
2279 empty = not scm_repo or scm_repo.is_empty()
2280 if not empty:
2280 if not empty:
2281 cs_cache = scm_repo.get_commit(
2281 cs_cache = scm_repo.get_commit(
2282 pre_load=["author", "date", "message", "parents"])
2282 pre_load=["author", "date", "message", "parents"])
General Comments 0
You need to be logged in to leave comments. Login now