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;
19 public class RefDirectoryAfterOpenConfigTest extends RefDirectoryTest {
22 public void refDirectorySetup() throws Exception {
23 StoredConfig userConfig = SystemReader.getInstance().getUserConfig();
24 userConfig.setEnum(ConfigConstants.CONFIG_CORE_SECTION, null,
25 ConfigConstants.CONFIG_KEY_TRUST_PACKED_REFS_STAT,
26 CoreConfig.TrustPackedRefsStat.AFTER_OPEN);
28 super.refDirectorySetup();