]> source.dussan.org Git - jgit.git/blob
42304e2253e18f74ed0c20e4b3ec181b9e7f1e42
[jgit.git] /
1 /*
2  * Copyright (c) 2023 Qualcomm Innovation Center, Inc.
3  * and other copyright owners as documented in the project's IP log.
4  *
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.
8  *
9  * SPDX-License-Identifier: BSD-3-Clause
10  */
11
12 package org.eclipse.jgit.internal.storage.file;
13
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
19 public class RefDirectoryAfterOpenConfigTest extends RefDirectoryTest {
20         /** {@inheritDoc} */
21         @Override
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);
27                 userConfig.save();
28                 super.refDirectorySetup();
29         }
30 }