]> source.dussan.org Git - jgit.git/blob
100bd32ad8d6d15bf2c91c8ef4d330a4c90f85fb
[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 import org.junit.Before;
19
20 public class FileRepositoryBuilderAfterOpenConfigTest extends FileRepositoryBuilderTest {
21         /** {@inheritDoc} */
22         @Before
23         @Override
24         public void setUp() throws Exception {
25                 super.setUp();
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);
30                 userConfig.save();
31         }
32 }