|
|
@ -1501,6 +1501,10 @@ func updateRepository(e Engine, repo *Repository, visibilityChanged bool) (err e |
|
|
|
return fmt.Errorf("update: %v", err) |
|
|
|
return fmt.Errorf("update: %v", err) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if err = repo.updateSize(e); err != nil { |
|
|
|
|
|
|
|
log.Error("Failed to update size for repository: %v", err) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if visibilityChanged { |
|
|
|
if visibilityChanged { |
|
|
|
if err = repo.getOwner(e); err != nil { |
|
|
|
if err = repo.getOwner(e); err != nil { |
|
|
|
return fmt.Errorf("getOwner: %v", err) |
|
|
|
return fmt.Errorf("getOwner: %v", err) |
|
|
@ -1546,10 +1550,6 @@ func updateRepository(e Engine, repo *Repository, visibilityChanged bool) (err e |
|
|
|
return fmt.Errorf("updateRepository[%d]: %v", forkRepos[i].ID, err) |
|
|
|
return fmt.Errorf("updateRepository[%d]: %v", forkRepos[i].ID, err) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if err = repo.updateSize(e); err != nil { |
|
|
|
|
|
|
|
log.Error("Failed to update size for repository: %v", err) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return nil |
|
|
|
return nil |
|
|
|