We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bare=True
1 parent 2ce713a commit 8c3385bCopy full SHA for 8c3385b
tests/cmd/test_git.py
@@ -34,8 +34,13 @@ def test_git_init_bare(tmp_path: pathlib.Path) -> None:
34
repo = git.Git(path=tmp_path)
35
result = repo.init(bare=True)
36
assert "Initialized empty Git repository" in result
37
- # Bare repos have files directly in the directory
+
38
+ # Verify bare repository structure and configuration
39
assert (tmp_path / "HEAD").exists()
40
+ config_path = tmp_path / "config"
41
+ assert config_path.exists(), "Config file does not exist in bare repository"
42
+ config_text = config_path.read_text()
43
+ assert "bare = true" in config_text, "Repository core.bare flag not set to true"
44
45
46
def test_git_init_template(tmp_path: pathlib.Path) -> None:
0 commit comments