Skip to content

Commit 7644c2b

Browse files
committed
cmd/git(fix[Git.clone]): Fix separate_git_dir repr quoting issue
why: Using !r (repr) incorrectly added quotes around the path, causing git to fail with "unknown option: --separate-git-dir='/path/to/dir'". what: - Change {separate_git_dir!r} to {separate_git_dir!s} to match init()
1 parent 3a6153f commit 7644c2b

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
@@ -353,7 +353,7 @@ def clone(
353353
if template is not None:
354354
local_flags.append(f"--template={template}")
355355
if separate_git_dir is not None:
356-
local_flags.append(f"--separate-git-dir={separate_git_dir!r}")
356+
local_flags.append(f"--separate-git-dir={separate_git_dir!s}")
357357
if (_filter := kwargs.pop("_filter", None)) is not None:
358358
local_flags.append(f"--filter={_filter}")
359359
if depth is not None:

0 commit comments

Comments
 (0)