Skip to content

Commit 9907486

Browse files
committed
cmd/git(fix[Git.init]): Remove invalid --default parameter
why: Git's init command does not have a --default flag. This parameter would cause runtime failures when used. what: - Remove default parameter from init() signature - Remove default from docstring - Remove if default is True: block
1 parent d4babb9 commit 9907486

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/libvcs/cmd/git.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,6 @@ def init(
10661066
quiet: bool | None = None,
10671067
bare: bool | None = None,
10681068
ref_format: t.Literal["files", "reftable"] | None = None,
1069-
default: bool | None = None,
10701069
# libvcs special behavior
10711070
check_returncode: bool | None = None,
10721071
make_parents: bool = True,
@@ -1122,9 +1121,6 @@ def init(
11221121
Specify the reference storage format. Requires git version >= 2.37.0.
11231122
- files: Classic format with packed-refs and loose refs (default)
11241123
- reftable: New format that is more efficient for large repositories
1125-
default : bool, optional
1126-
Use default permissions for directories and files. This is the same as
1127-
running git init without any options.
11281124
check_returncode : bool, optional
11291125
If True, check the return code of the git command and raise a
11301126
CalledProcessError if it is non-zero.
@@ -1284,8 +1280,6 @@ def init(
12841280
local_flags.append("--bare")
12851281
if ref_format is not None:
12861282
local_flags.append(f"--ref-format={ref_format}")
1287-
if default is True:
1288-
local_flags.append("--default")
12891283

12901284
# libvcs special behavior
12911285
if make_parents and not self.path.exists():

0 commit comments

Comments
 (0)