2 * Copyright (c) 2023 Qualcomm Innovation Center, Inc.
3 * and other copyright owners as documented in the project's IP log.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Distribution License v. 1.0 which is available at
7 * https://www.eclipse.org/org/documents/edl-v10.php.
9 * SPDX-License-Identifier: BSD-3-Clause
12 package org.eclipse.jgit.internal.storage.file;
14 import org.eclipse.jgit.lib.ConfigConstants;
15 import org.eclipse.jgit.lib.CoreConfig;
16 import org.eclipse.jgit.lib.StoredConfig;
17 import org.eclipse.jgit.util.SystemReader;
18 import org.junit.Before;
20 public class FileRepositoryBuilderAfterOpenConfigTest extends FileRepositoryBuilderTest {
24 public void setUp() throws Exception {
26 StoredConfig userConfig = SystemReader.getInstance().getUserConfig();
27 userConfig.setEnum(ConfigConstants.CONFIG_CORE_SECTION, null,
28 ConfigConstants.CONFIG_KEY_TRUST_PACKED_REFS_STAT,
29 CoreConfig.TrustPackedRefsStat.AFTER_OPEN);