Explorar el Código

Fixes indexed repos keeping outdated indexes when files grow too large (#7731)

* Fixes indexed repos keeping outdated indexes when files grow too large

Co-Authored-By: zeripath <art27@cantab.net>
tags/v1.9.1
guillep2k hace 4 años
padre
commit
0d10482168
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      models/repo_indexer.go

+ 1
- 1
models/repo_indexer.go Ver fichero

@@ -199,7 +199,7 @@ func addUpdate(update fileUpdate, repo *Repository, batch rupture.FlushingBatch)
if size, err := strconv.Atoi(strings.TrimSpace(stdout)); err != nil {
return fmt.Errorf("Misformatted git cat-file output: %v", err)
} else if int64(size) > setting.Indexer.MaxIndexerFileSize {
return nil
return addDelete(update.Filename, repo, batch)
}

fileContents, err := git.NewCommand("cat-file", "blob", update.BlobSha).

Cargando…
Cancelar
Guardar