Skip to content

Commit d4babb9

Browse files
committed
cmd/git(fix[Git.run]): Fix boolean config serialization typo
why: The stringify helper used `if True` instead of `if v`, causing all boolean config values to serialize as "true" regardless of actual value. what: - Change `return "true" if True else "false"` to `if v else "false"`
1 parent ca7a3b7 commit d4babb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libvcs/cmd/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def run(
243243

244244
def stringify(v: t.Any) -> str:
245245
if isinstance(v, bool):
246-
return "true" if True else "false"
246+
return "true" if v else "false"
247247
if not isinstance(v, str):
248248
return str(v)
249249
return v

0 commit comments

Comments
 (0)