Skip to content

Commit 2a7cacf

Browse files
committed
safe dir problem?
1 parent f32a3c3 commit 2a7cacf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_patch_git_preparation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def test_patch_git_prep():
1313
base_dir = Path(__file__).parent.absolute()
1414
script_path = base_dir / ".." / "patch-git-prepare.sh"
1515
expected_file = base_dir / "patch-git-example-output.txt"
16-
16+
# any directory is OK for our testing
17+
subprocess.run(["git", "config", "--global", "add.safe.directory", "*"],
18+
check=True)
1719
with tempfile.TemporaryDirectory(dir=base_dir) as tmp_dir:
1820
tmp_path = Path(tmp_dir)
1921
commit = "c8d343a3ff7f6be17ff1d0dd7f89d06845c0a18b"

0 commit comments

Comments
 (0)