Merge branch 'stable-2.15' into stable-2.16

* stable-2.15:
  Revert "Migrate from old-style legacy .java provider to the new JavaInfo."
  Catch all exceptions for reporting on Schema_130 migration
  Migrate from old-style legacy .java provider to the new JavaInfo.

Change-Id: I8fe109677bfa32c4fccceef28ff234d666d90c24
This commit is contained in:
David Pursehouse
2019-08-14 15:06:36 +09:00

View File

@@ -25,10 +25,8 @@ import com.google.gerrit.server.git.meta.MetaDataUpdate;
import com.google.gwtorm.server.OrmException;
import com.google.inject.Inject;
import com.google.inject.Provider;
import java.io.IOException;
import java.util.SortedSet;
import java.util.TreeSet;
import org.eclipse.jgit.errors.ConfigInvalidException;
import org.eclipse.jgit.lib.PersonIdent;
import org.eclipse.jgit.lib.Repository;
@@ -66,7 +64,7 @@ public class Schema_130 extends SchemaVersion {
repoUpgraded.add(projectName);
}
cfg.save(serverUser, COMMIT_MSG);
} catch (ConfigInvalidException | IOException ex) {
} catch (Exception ex) {
throw new OrmException("Cannot migrate project " + projectName, ex);
}
}