Merge branch 'main' of ssh://git.commumedia.org:2222/alex/headquarter
This commit is contained in:
@@ -63,6 +63,13 @@ class TestGitStatus:
|
||||
assert "new.py" in status.untracked
|
||||
|
||||
|
||||
def test_get_current_branch_handles_unborn_main() -> None:
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
os.system(f"git init -b main {tmpdir} >/dev/null 2>&1")
|
||||
|
||||
assert get_current_branch(tmpdir) == "main"
|
||||
|
||||
|
||||
class TestBranchOperations:
|
||||
"""Tests for branch management functions."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user